From ab794b91ca77ab12f381c2f8f8dd16c35568cdbd Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 26 Feb 2014 21:12:57 -0500 Subject: oh-strip: Fix scope and case of keep_debug var. --- diff --git a/src/oh-strip.sh b/src/oh-strip.sh index 7b47d6c..4217099 100644 --- a/src/oh-strip.sh +++ b/src/oh-strip.sh @@ -23,11 +23,11 @@ CR=' ' +KEEP_DEBUG='false' main() { dir='dest' - keep_debug='false' oh_init @@ -37,7 +37,7 @@ main() dir="${OPTARG}" ;; k) - keep_debug='true' + KEEP_DEBUG='true' ;; ?) oh_error "$(oh_get_msg 'bad_opt')" @@ -80,7 +80,7 @@ strip_so() oh_info "$(oh_get_msg 'strip_so')" "${file}" - if ${keep_debug}; then + if ${KEEP_DEBUG}; then debug="$(keep_debug "${file}")" fi @@ -99,7 +99,7 @@ strip_exe() oh_info "$(oh_get_msg 'strip_exe')" "${file}" - if ${keep_debug}; then + if ${KEEP_DEBUG}; then debug="$(keep_debug "${file}")" fi -- cgit v0.9.1