summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-26 21:12:57 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-26 21:12:57 (EST)
commitab794b91ca77ab12f381c2f8f8dd16c35568cdbd (patch)
tree5debb1cb61698f4673be9f72435c9bc009fb9713 /src
parent17061e3aae882fb5ebb73a620fab720100623d10 (diff)
oh-strip: Fix scope and case of keep_debug var.
Diffstat (limited to 'src')
-rw-r--r--src/oh-strip.sh8
1 files changed, 4 insertions, 4 deletions
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