bug fixes

This commit is contained in:
ION606
2024-06-26 13:21:01 -04:00
parent 25fdb8c263
commit 3c64364dcb
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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!"
+1 -1
View File
@@ -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
+1
View File
@@ -36,3 +36,4 @@ source ~/.bashrc
# Clean up
rm -rf .ionvcs
rm ivcs.sh
+1
View File
@@ -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