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 4861983 commit 2c5b047
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crP
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function usage() {
fi
return 0
}
p=`which perl`
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 '#!/usr/bin/perl -w' >> ${file}
echo "#!${p} -w" >> ${file}
echo ' ' >> ${file}
echo 'use strict;' >> ${file}
echo 'use warnings;' >> ${file}
Expand Down

0 comments on commit 2c5b047

Please sign in to comment.