Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Nov 25, 2015
1 parent ca5d59a commit b469a53
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions crSh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,27 @@ usage $1
if [ $? = 1 ]; then
echo "Skryptname eingeben: "
read file
file="${file}.sh"
else
file=$1
file="${1}.sh"
fi
x="false"
while [ "$x" = "false" ]
do
if [ ! -e ${file} ]; then
x="true"
else
echo "existiert bereits !!!!"
echo "neuen Skryptname eingeben: "
read file
file="${file}.sh"
fi
done

exec 3> /dev/null
touch ./${file}.sh >&3
chmod a+x ${file}.sh >&3
echo '#!/bin/bash' >> ${file}.sh
geany ${file}.sh &
touch ./${file} >&3
chmod a+x ${file} >&3
echo '#!/bin/bash' >> ${file}
geany ${file} &
exec 3>&-
exit 0

0 comments on commit b469a53

Please sign in to comment.