Permalink
Browse files

merge in jason v0.0.7 for sub fix

  • Loading branch information...
defn committed Oct 6, 2012
1 parent 2ea035e commit 9ad2597551819cf589040cf27d4d3a08315fe7d4
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/_sub
View
@@ -3,9 +3,9 @@
function sub {
local bsource="$1"; shift
local sub_base="$(basename "$bsource")"
- local sub_cmd="$shome/libexec/${sub_base}"
+ local bsource_cmd="$shome/libexec/${sub_base}"
- if [[ "$sub_cmd" == "$bsource" ]]; then
+ if [[ "$bsource_cmd" = "$bsource" ]]; then
FLAGS_SUB="$FLAGS_TRUE"
parse_command_line "$@" || exit $?
eval set -- "${FLAGS_ARGV}"
@@ -25,8 +25,8 @@ function sub {
fi
fi
- if [[ -x "$sub_cmd" && "$sub_cmd" != "$bsource" ]]; then
- exec "$sub_cmd" "$@"
+ if [[ -x "$bsource_cmd" && "$bsource_cmd" != "$bsource" ]]; then
+ exec "$bsource_cmd" "$@"
else
main "$@"
fi

0 comments on commit 9ad2597

Please sign in to comment.