diff --git a/clone.sh b/clone.sh index 64e2207..47201e0 100644 --- a/clone.sh +++ b/clone.sh @@ -41,6 +41,6 @@ echo "user=$username" >> "$CONF_FILE" chmod 600 "$CONF_FILE" # Use rsync with sshpass to copy files with a progress bar -echo -n "cloning " +echo -n "cloning..." /usr/bin/sshpass -p "$password" rsync -a --info=progress2 --no-i-r -h -e ssh "$REMOTE_PATH" "$DEST_FOLDER" || { echo "failed to clone!"; exit 1; } echo "done!" \ No newline at end of file diff --git a/getuser.sh b/getuser.sh index 960e4c9..fc4c4a5 100644 --- a/getuser.sh +++ b/getuser.sh @@ -2,7 +2,7 @@ if [ -f "$HOME/ionsrc/creds.txt" ]; then source "$HOME/ionsrc/creds.txt" - echo "logged in as \033[0;31m$username\e[0m!" + echo -e "logged in as \033[0;31m$username\e[0m!" else echo "no user found!" fi \ No newline at end of file diff --git a/init.sh b/init.sh index a2942cd..77d93f2 100644 --- a/init.sh +++ b/init.sh @@ -36,3 +36,4 @@ source ~/.bashrc # Clean up rm -rf .ionvcs +rm ivcs.sh \ No newline at end of file diff --git a/status.sh b/status.sh index d853f34..9f776ca 100644 --- a/status.sh +++ b/status.sh @@ -28,6 +28,7 @@ DIFF_OUTPUT=$(/usr/bin/sshpass -p "$password" rsync -avcn --delete -e ssh "$REMO # Check if there are differences if [ ! -z "$DIFF_OUTPUT" ]; then + echo -e "\e[1;32mdifferences found\e[0m" echo "$DIFF_OUTPUT" exit 1; else