-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always exit with the exit code of the command
Previously, in case a command started successfully, but failed eventually, pistol would not exit with the exit code of the command. Fixes #52.
- Loading branch information
1 parent
2665155
commit 3a8dc11
Showing
7 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.8 | ||
0.1.9 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
if ./pistol --config tests/config tests/34.json.bz2; then | ||
tput setaf 1 | ||
echo "exit code was not non-zero when testing a non real command" | ||
exit 1 | ||
else | ||
tput setaf 2 | ||
echo "exit code was not zero" | ||
fi | ||
|
||
if ./pistol --config tests/config tests; then | ||
tput setaf 1 | ||
echo "exit code was not non-zero when testing a real command with invalid arguments for it" | ||
exit 1 | ||
else | ||
tput setaf 2 | ||
echo "exit code was not zero" | ||
fi | ||
tput sgr0 | ||
exit 0 |