Fix svn restore issues on Windows

This commit is contained in:
2022-02-11 18:32:18 -05:00
parent 8990eb866d
commit e2814cccca
2 changed files with 19 additions and 8 deletions

View File

@@ -37,12 +37,12 @@ if [[ $repo_path == "" || $output_path == "" ]]; then
exit 1
fi
if [[ ! -d $repo_path ]]; then
if [[ ! -d "$repo_path" ]]; then
error "Repo directory '$repo_path' doesn't exist."
exit 1
fi
mkdir -p $output_path
mkdir -p "$output_path"
now=$(echo $(date '+%Y-%m-%d-%H-%M-%S'))
backup_path="$output_path/${now}_jellypixel_repos.dump.gz"
@@ -55,4 +55,4 @@ if [[ ! ($proceed == "1" || $proceed == "y") ]]; then
exit 1
fi
svnadmin.exe dump $repo_path | gzip -9 > $backup_path
svnadmin.exe dump "$repo_path" | gzip -9 > "$backup_path"