From 876da7521ce61bf20bf83818a8e84f7b05727b22 Mon Sep 17 00:00:00 2001 From: alanw Date: Tue, 9 May 2023 14:58:30 -0700 Subject: [PATCH] fixed run from urlfixed run from url --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 869d028..f139734 100644 --- a/functions +++ b/functions @@ -574,7 +574,7 @@ run-from-url(){ args=${*:2} # boxline "args=$args" # check the interpreter using the shebang at the top of the file - interpreter=$(curl -ks $url | head -n 1 | cut -c 2- 2>/dev/null) + interpreter=$(curl -ks $url | head -n 1 | sed -n -e 's\/\#//g' 2>/dev/null) # boxline "interpreter=$interpreter" # In case of missing shebang, default to bash if [ -z $interpreter ] ; then