diff --git a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh index 551996af2..47ec2e2b2 100644 --- a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh +++ b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh @@ -49,7 +49,7 @@ change_folders () { chown -R "$PUID":"$PGID" "$CONFIGLOCATION" # Transfer files - if [ -d "$ORIGINALLOCATION" ] & [ "$(ls -A $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"