mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -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() {
|
which_command() {
|
||||||
local shim_name
|
local shim_name
|
||||||
shim_name=$(basename "$1")
|
shim_name=$(basename "${1:-}")
|
||||||
|
|
||||||
if [ -z "$shim_name" ]; then
|
if [ -z "$shim_name" ]; then
|
||||||
echo "usage: asdf which <command>"
|
echo "usage: asdf which <command>"
|
||||||
|
Loading…
Reference in New Issue
Block a user