From 9b4b6c3b166b2fb26d1d66dcca6f8e78ff11e886 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Sat, 11 May 2019 16:50:12 -0400 Subject: [PATCH] Add bash strict mode to /lib/commands/plugin-list.sh --- lib/commands/plugin-list.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/commands/plugin-list.sh b/lib/commands/plugin-list.sh index a8521ae4..d05ab9d2 100644 --- a/lib/commands/plugin-list.sh +++ b/lib/commands/plugin-list.sh @@ -1,5 +1,8 @@ +set -o nounset -o pipefail -o errexit +IFS=$'\t\n' # Stricter IFS settings + plugin_list_command() { - local flag=$1 + local flag=${1:-} # 0 || 1 with flag if [ $# -eq 0 ] || { [ $# -eq 1 ] && [ "$flag" = "--urls" ]; }; then