mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 10:11:53 +02:00
Update 00-folders.sh
This commit is contained in:
@@ -49,7 +49,7 @@ change_folders () {
|
|||||||
chown -R "$PUID":"$PGID" "$CONFIGLOCATION"
|
chown -R "$PUID":"$PGID" "$CONFIGLOCATION"
|
||||||
|
|
||||||
# Transfer files
|
# 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"
|
echo "Files were existing in $ORIGINALLOCATION, they will be moved to $CONFIGLOCATION"
|
||||||
mv "$ORIGINALLOCATION"/* "$CONFIGLOCATION"/
|
mv "$ORIGINALLOCATION"/* "$CONFIGLOCATION"/
|
||||||
rmdir "$ORIGINALLOCATION"
|
rmdir "$ORIGINALLOCATION"
|
||||||
|
|||||||
Reference in New Issue
Block a user