diff options
author | teor <teor2345@gmail.com> | 2017-02-27 16:11:22 +1100 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2017-02-28 02:13:56 +1100 |
commit | 73879aa5b686cf445389f02a3d954222ea6ae2ae (patch) | |
tree | 5d8c780f5042ec8b8ba50fb3314631b29de64304 /src/test/test-network.sh | |
parent | 1ebcd22e80e1b59747b4abfddb601f89d96bf59a (diff) | |
download | tor-73879aa5b686cf445389f02a3d954222ea6ae2ae.tar.gz tor-73879aa5b686cf445389f02a3d954222ea6ae2ae.zip |
Use bash in src/test/test-network.sh
This ensures we reliably call chutney's newer tools/test-network.sh when
available.
Fixes bug 21562; bugfix on tor-0.2.9.1-alpha.
Diffstat (limited to 'src/test/test-network.sh')
-rwxr-xr-x | src/test/test-network.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test-network.sh b/src/test/test-network.sh index 2c37b6d826..cb10f7232f 100755 --- a/src/test/test-network.sh +++ b/src/test/test-network.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # Please do not modify this script, it has been moved to chutney/tools @@ -178,7 +178,8 @@ export CHUTNEY_NETWORK=networks/$NETWORK_FLAVOUR # And finish up if we're doing a dry run if [ "$NETWORK_DRY_RUN" = true ]; then # we can't exit here, it breaks argument processing - return + # this only works in bash: return semantics are shell-specific + return 2>/dev/null || exit fi cd "$CHUTNEY_PATH" |