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/which.sh
This commit is contained in:
parent
00186a8420
commit
b1ec17870a
@ -1,6 +1,9 @@
|
||||
set -o nounset -o pipefail -o errexit
|
||||
IFS=$'\t\n' # Stricter IFS settings
|
||||
|
||||
which_command() {
|
||||
local shim_name
|
||||
shim_name=$(basename "$1")
|
||||
shim_name=$(basename "${1:-}")
|
||||
|
||||
if [ -z "$shim_name" ]; then
|
||||
echo "usage: asdf which <command>"
|
||||
|
Loading…
Reference in New Issue
Block a user