Skip to content

Commit

Permalink
feat(extract-libjade.sh): Return exit code 0 if script was successful
Browse files Browse the repository at this point in the history
  • Loading branch information
koraa committed Aug 7, 2024
1 parent ff792d3 commit 5f80ce8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions extract-libjade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ main() {
# check if --list-implementations
if [ "${1}" == "--list-implementations" ]; then
make --no-print-directory -C "$project_dir"/src print-available-implementations
exit 1
return 0
fi

# check if --gen-implementation
Expand Down Expand Up @@ -87,16 +87,14 @@ main() {
# restore implementation state
make --no-print-directory -C "${project_dir}/src/" "${relative_implementation}/revert-preprocess-inplace"

exit 1;

return 0
else
fatal_usage "$0 --gen-implementation: number of required arguments 3 : provided $#"
fi
fi

# with 'good' options this should be unreachable, hence, print usage
print_usage
exit 1
fatal_usage "Invalid command \`${1}\`"
}

init() {
Expand Down

0 comments on commit 5f80ce8

Please sign in to comment.