From 2ee6edbc821d891a656e7676f76eba7bb2f35147 Mon Sep 17 00:00:00 2001 From: Zac Holland Date: Fri, 15 Dec 2023 16:16:40 -0800 Subject: [PATCH] fix bashrc lines --- tailscale.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailscale.sh b/tailscale.sh index b8568f9..22e345f 100644 --- a/tailscale.sh +++ b/tailscale.sh @@ -46,8 +46,8 @@ cp -rf $tar_dir/tailscale /home/deck/.bin/tailscale cp -rf $tar_dir/tailscaled /home/deck/.bin/tailscaled # add binaries to path via bashrc if not already there -if [ $(cat /home/deck/.bashrc | grep -c "/home/deck/.bin") -eq 0 ]; then - echo "/home/deck/.bin" >> /home/deck/.bashrc +if [ $(cat /home/deck/.bashrc | grep -c 'export PATH="/home/deck/.bin:$PATH"') -eq 0 ]; then + echo 'export PATH="/home/deck/.bin:$PATH"' >> /home/deck/.bashrc fi # copy in the defaults file if it doesn't already exist