mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
Add error handling: exit if cd fails
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
if [ $# -gt 1 ]; then
|
||||
cd "$2"
|
||||
cd "$2" || exit 1
|
||||
fi
|
||||
if [ $# -gt 0 ]; then
|
||||
FILE="$1"
|
||||
|
||||
Reference in New Issue
Block a user