Update v-move-folder-and-make-symlink

This commit is contained in:
myvesta 2025-03-19 16:25:04 +01:00 committed by GitHub
commit 4437f6f0da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,8 +73,9 @@ if [ "$FROMFOLDER" = "/home/$USER" ] && [ -d "$FROMFOLDER/conf" ]; then
fi
# rsync -a "$FROMFOLDER/" "$TOFOLDER/"
mv "$FROMFOLDER" "$TOFOLDER"
# with slashes on the end of the path of both folders
mv "$FROMFOLDER" "$TOFOLDER"
if [ "$?" -ne 0 ]; then
echo "Error happened, aborting"
exit 1