From f74820fab9c9abec0b01eb3d95e07a440d990881 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 23 Jan 2019 19:14:41 +0100 Subject: [PATCH] Don't try to move current and parent directories --- debian/part.btrfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/part.btrfs.sh b/debian/part.btrfs.sh index aa64ed3..02b292d 100755 --- a/debian/part.btrfs.sh +++ b/debian/part.btrfs.sh @@ -17,7 +17,7 @@ for DIR in etc home opt root srv tmp usr var; do ## If the directory already existed if [ -d "/target/${DIR}.temp" ]; then ## Move the content to the new subvolume - mv -- /target/"${DIR}".temp/.* /target/"${DIR}".temp/* /target/"${DIR}" + mv -- /target/"${DIR}".temp/* /target/"${DIR}".temp/.[!.]* /target/"${DIR}".temp/..?* /target/"${DIR}" ## Remove the temp directory rmdir -- /target/"${DIR}".temp fi