mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Add bash strict mode to /lib/commands/plugin-list.sh
This commit is contained in:
parent
fd5cf96dfd
commit
9b4b6c3b16
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user