Skip to content

Commit

Permalink
Fixed zsh compatibility with debug and verbose flags
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaandrov committed Jul 10, 2019
1 parent 99d872a commit 7688b59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function scr_install

local destination_path="/tmp"
local bin_path="/usr/local/bin"
local stitchocker_stable_release="0.0.7"
local stitchocker_stable_release="0.0.8"
local stitchoker_uri="https://raw.githubusercontent.com/alexaandrov/stitchocker/$stitchocker_stable_release/stitchocker.sh"
local stitchocker_name="stitchocker"
local stitchocker_tmp_path="$destination_path/$stitchocker_name.sh"
Expand Down
4 changes: 3 additions & 1 deletion stitchocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
function scr
{
local fn="stitchocker"
local version="0.0.7"
local version="0.0.8"
local version_info="Stitchocker version $version"
local help="
Usage:
Expand Down Expand Up @@ -92,6 +92,7 @@ function scr
local debug_export="export $(echo $debug_env | awk '{print toupper($0)}')"
eval "$debug_export=true"
$self ${@:2}
eval "$debug_export=false"
;;
# --------------------------------------------------------------
# Runs all commands in verbose mode
Expand All @@ -100,6 +101,7 @@ function scr
local verbose_export="export $(echo $verbose_env | awk '{print toupper($0)}')"
eval "$verbose_export=true"
$self ${@:2}
eval "$verbose_export=false"
;;
# --------------------------------------------------------------
# The entry point for all commands
Expand Down

0 comments on commit 7688b59

Please sign in to comment.