vcs-backup.sh
branchv_0
changeset 18 9353b2531cda
parent 17 fb9b67ba1dae
child 19 d7978ca64a20
     1.1 --- a/vcs-backup.sh	Tue Apr 23 17:06:58 2019 +0200
     1.2 +++ b/vcs-backup.sh	Tue Apr 23 17:56:16 2019 +0200
     1.3 @@ -136,7 +136,9 @@
     1.4  		if [[ "$3" == "public" ]]; then
     1.5  			cd "$VCS_BACKUP_PUBLIC_DIR";
     1.6  			mkdir -p "$(dirname $relativePath)";
     1.7 -			ln -rs "../current/$relativePath" "$(dirname $relativePath)";
     1.8 +			ln -rsf "../current/$relativePath" "$(dirname $relativePath)";
     1.9 +		elif [[ "$3" == "private" && -e "$VCS_BACKUP_PUBLIC_DIR/$relativePath" ]]; then
    1.10 +			rm "$VCS_BACKUP_PUBLIC_DIR/$relativePath";
    1.11  		fi
    1.12  
    1.13  		if [[ "$4" == "clone" ]]; then