Update 00-folders.sh

This commit is contained in:
Alexandre
2022-05-19 18:12:54 +02:00
committed by GitHub
parent 139e4dead2
commit 79ebd6c16b

View File

@@ -49,7 +49,7 @@ change_folders () {
chown -R "$PUID":"$PGID" "$CONFIGLOCATION"
# Transfer files
if [ -d "$ORIGINALLOCATION" ]; then
if [ -d "$ORIGINALLOCATION" ] & [ "$(ls -A $ORIGINALLOCATION)" ]; then
echo "Files were existing in $ORIGINALLOCATION, they will be moved to $CONFIGLOCATION"
mv "$ORIGINALLOCATION"/* "$CONFIGLOCATION"/
rmdir "$ORIGINALLOCATION"