mirror of
https://github.com/ION606/VCS.git
synced 2026-05-14 22:16:55 +00:00
bug fixes
This commit is contained in:
@@ -41,6 +41,6 @@ echo "user=$username" >> "$CONF_FILE"
|
|||||||
chmod 600 "$CONF_FILE"
|
chmod 600 "$CONF_FILE"
|
||||||
|
|
||||||
# Use rsync with sshpass to copy files with a progress bar
|
# 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; }
|
/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!"
|
echo "done!"
|
||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if [ -f "$HOME/ionsrc/creds.txt" ]; then
|
if [ -f "$HOME/ionsrc/creds.txt" ]; then
|
||||||
source "$HOME/ionsrc/creds.txt"
|
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
|
else
|
||||||
echo "no user found!"
|
echo "no user found!"
|
||||||
fi
|
fi
|
||||||
@@ -36,3 +36,4 @@ source ~/.bashrc
|
|||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -rf .ionvcs
|
rm -rf .ionvcs
|
||||||
|
rm ivcs.sh
|
||||||
@@ -28,6 +28,7 @@ DIFF_OUTPUT=$(/usr/bin/sshpass -p "$password" rsync -avcn --delete -e ssh "$REMO
|
|||||||
|
|
||||||
# Check if there are differences
|
# Check if there are differences
|
||||||
if [ ! -z "$DIFF_OUTPUT" ]; then
|
if [ ! -z "$DIFF_OUTPUT" ]; then
|
||||||
|
echo -e "\e[1;32mdifferences found\e[0m"
|
||||||
echo "$DIFF_OUTPUT"
|
echo "$DIFF_OUTPUT"
|
||||||
exit 1;
|
exit 1;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user