From 125a4ea61b920d6711d10d43dc2a8f9efd4c0324 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 17 Dec 2015 15:49:48 +0100 Subject: [PATCH] Pfad in Variable gesteckt --- crSh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crSh b/crSh index 3696083..9d409c3 100755 --- a/crSh +++ b/crSh @@ -8,6 +8,7 @@ function usage() { return 0 } +p=`which bash` usage $1 if [ $? = 1 ]; then echo "Skryptname eingeben: " @@ -32,7 +33,7 @@ done exec 3> /dev/null touch ./${file} >&3 chmod a+x ${file} >&3 -echo '#!/bin/bash' >> ${file} +echo "#!${p}" >> ${file} geany ${file} & exec 3>&- exit 0