Skip to content

Commit 9d92efa

Browse files
committed
redirect stderr of which if resdeps.kts is missing
1 parent 28fbfc8 commit 9d92efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if [ "$1" == "--clear-cache" ]; then
8181
fi
8282

8383
## look up resdeps from repo unless we're having a full local test clone of it
84-
if [[ -z "$(which resdeps.kts)" ]]; then
84+
if [[ -z "$(which resdeps.kts 2>/dev/null)" ]]; then
8585
resolve_script_deps(){ kscript "https://raw.githubusercontent.com/holgerbrandl/kscript/v${KSCRIPT_VERSION}/resdeps.kts" "$@"; }
8686
else
8787
resolve_script_deps(){ resdeps.kts "$@"; }

0 commit comments

Comments
 (0)