mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 00-folders.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user