From f246ec52e9547f026c489decf29c739390b20633 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Tue, 17 Dec 2013 22:42:53 +0900 Subject: [PATCH] "set -u" before "set -x" --- bin/rbenv-plug | 5 ++--- bin/rbenv-unplug | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/rbenv-plug b/bin/rbenv-plug index 9acee0a..8fc712a 100755 --- a/bin/rbenv-plug +++ b/bin/rbenv-plug @@ -6,9 +6,8 @@ # rbenv plug # rbenv plug -set -eo pipefail -[ -n "$RBENV_DEBUG" ] && set -x -set -u +set -euo pipefail +[ -n "${RBENV_DEBUG-}" ] && set -x shopt -s nullglob [ $# -gt 0 ] || exec rbenv-help plug diff --git a/bin/rbenv-unplug b/bin/rbenv-unplug index 18fa609..0c13631 100755 --- a/bin/rbenv-unplug +++ b/bin/rbenv-unplug @@ -8,9 +8,8 @@ # for confirmation. If the plugins do not exist, do not # display an error message. -set -e -[ -n "$RBENV_DEBUG" ] && set -x -set -u +set -euo pipefail +[ -n "${RBENV_DEBUG-}" ] && set -x shopt -s nullglob [ $# -gt 0 ] || exec rbenv-help unplug