mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Update v-move-folder-and-make-symlink
This commit is contained in:
parent
24908aede1
commit
4437f6f0da
1 changed files with 2 additions and 1 deletions
|
@ -73,8 +73,9 @@ if [ "$FROMFOLDER" = "/home/$USER" ] && [ -d "$FROMFOLDER/conf" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# rsync -a "$FROMFOLDER/" "$TOFOLDER/"
|
# rsync -a "$FROMFOLDER/" "$TOFOLDER/"
|
||||||
mv "$FROMFOLDER" "$TOFOLDER"
|
|
||||||
# with slashes on the end of the path of both folders
|
# with slashes on the end of the path of both folders
|
||||||
|
|
||||||
|
mv "$FROMFOLDER" "$TOFOLDER"
|
||||||
if [ "$?" -ne 0 ]; then
|
if [ "$?" -ne 0 ]; then
|
||||||
echo "Error happened, aborting"
|
echo "Error happened, aborting"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue