Skip to content

Commit

Permalink
Pfad in Variable gesteckt
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Dec 17, 2015
1 parent b469a53 commit 125a4ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crSh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function usage() {
return 0
}

p=`which bash`
usage $1
if [ $? = 1 ]; then
echo "Skryptname eingeben: "
Expand All @@ -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

0 comments on commit 125a4ea

Please sign in to comment.