Don't try to move current and parent directories

This commit is contained in:
Jeremy Gardais 2019-01-23 19:14:41 +01:00
parent 74eb9475b0
commit f74820fab9
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ for DIR in etc home opt root srv tmp usr var; do
## If the directory already existed ## If the directory already existed
if [ -d "/target/${DIR}.temp" ]; then if [ -d "/target/${DIR}.temp" ]; then
## Move the content to the new subvolume ## 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 ## Remove the temp directory
rmdir -- /target/"${DIR}".temp rmdir -- /target/"${DIR}".temp
fi fi