Skip to content

Commit

Permalink
Create crSh
Browse files Browse the repository at this point in the history
david committed Nov 25, 2015
1 parent ee9964a commit ca5d59a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions crSh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
function usage() {

if [ "$1" == "" ]; then
echo "usage: $0 braucht Skriptnamen"
return 1
fi
return 0
}

usage $1
if [ $? = 1 ]; then
echo "Skryptname eingeben: "
read file
else
file=$1
fi
exec 3> /dev/null
touch ./${file}.sh >&3
chmod a+x ${file}.sh >&3
echo '#!/bin/bash' >> ${file}.sh
geany ${file}.sh &
exec 3>&-
exit 0

0 comments on commit ca5d59a

Please sign in to comment.