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

This commit is contained in:
myvesta 2022-12-29 15:12:58 +01:00 committed by GitHub
commit 0db48dcdaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,11 @@ if [ -d "$TOFOLDER" ]; then
exit 1
fi
if [ -L "$TOFOLDER" ]; then
echo "Folder $TOFOLDER already exists (as symlink), aborting"
exit 1
fi
USER=$(stat -c '%U' "$FROMFOLDER")
GROUP=$(stat -c '%G' "$FROMFOLDER")
PARENTFOLDER=$(dirname "$TOFOLDER")