File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
6
if [ -d " $1 " ]; then
7
- cd " $1 "
7
+ cd " $1 " || exit 1
8
8
else
9
9
echo " Usage: $0 <datadir>" >&2
10
10
echo " Removes obsolete Bitcoin database files" >&2
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ if [ ! -d "$WORKINGDIR" ]; then
33
33
mkdir " $WORKINGDIR "
34
34
fi
35
35
36
- cd " $WORKINGDIR "
36
+ cd " $WORKINGDIR " || exit 1
37
37
38
38
# test if a version number has been passed as an argument
39
39
if [ -n " $1 " ]; then
Original file line number Diff line number Diff line change 4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
6
if [ $# -gt 1 ]; then
7
- cd " $2 "
7
+ cd " $2 " || exit 1
8
8
fi
9
9
if [ $# -gt 0 ]; then
10
10
FILE=" $1 "
You can’t perform that action at this time.
0 commit comments