Fix svn restore issues on Windows
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user