File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ while [[ $# -gt 0 ]]; do
81
81
echo " $gaianet_base_dir should be a valid directory"
82
82
exit 1
83
83
fi
84
- gaianet_base_dir=$( cd " $gaianet_base_dir " && pwd)
84
+ gaianet_base_dir=$( cd " $( dirname " $ gaianet_base_dir" ) " 2> /dev/null && pwd -P ) / $( basename " $gaianet_base_dir " )
85
85
if [ " $tmp_dir_updated " -eq 0 ]; then
86
86
tmp_dir=" $gaianet_base_dir /tmp"
87
87
fi
@@ -102,7 +102,7 @@ while [[ $# -gt 0 ]]; do
102
102
echo " Please specify the backup file"
103
103
exit 1
104
104
fi
105
- backup_to_file=$( cd " $backup_to_file " && pwd)
105
+ backup_to_file=$( cd " $( dirname " $ backup_to_file" ) " 2> /dev/null && pwd -P ) / $( basename " $backup_to_file " )
106
106
shift 2
107
107
;;
108
108
--migrate)
@@ -112,7 +112,7 @@ while [[ $# -gt 0 ]]; do
112
112
echo " Cannot find the backup file: $migrated_from_file "
113
113
exit 1
114
114
fi
115
- migrated_from_file=$( cd " $migrated_from_file " && pwd)
115
+ migrated_from_file=$( cd " $( dirname " $ migrated_from_file" ) " 2> /dev/null && pwd -P ) / $( basename " $migrated_from_file " )
116
116
shift 2
117
117
;;
118
118
--tmpdir)
You can’t perform that action at this time.
0 commit comments