Add bash strict mode to /lib/commands/plugin-list.sh

This commit is contained in:
Trevor Brown 2019-05-11 16:50:12 -04:00
parent fd5cf96dfd
commit 9b4b6c3b16

View File

@ -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