Commit 54ac4765 authored by Francois-Rene Rideau's avatar Francois-Rene Rideau
Browse files

Tweak script runner so it works on NixOS

parent c7c47f8c
......@@ -308,7 +308,7 @@ if ! type "$command" > /dev/null ; then
exit 43
ASDFDIR="$(cd $(dirname $0)/.. ; /bin/pwd)"
ASDFDIR="$(cd $(dirname $0)/.. ; command pwd)"
: ${bcmd:=$command $flags} ${icmd:=$command $flags} # batch and interactive
if [ -z "${DEBUG_ASDF_TEST}" ] ; then
bcmd="$bcmd $nodebug"
  • I'm not sure I understand this commit. Why does a regular pwd not suffice here? I don't think command is very portable (I would expect this not to work on Debian's /bin/sh which is dash or on *BSD's /bin/sh).

  • pwd should probably suffice indeed. But command should be standard and works in NixOS's dash, mksh, fish, or zsh -y

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment