Don't try to move current and parent directories
This commit is contained in:
parent
74eb9475b0
commit
f74820fab9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue