bin/newbash

15 lines
161 B
Plaintext
Raw Permalink Normal View History

2020-04-21 15:50:59 +00:00
#!/bin/sh
set -e
if [ -f "$1" ] ; then
echo "Error: file exists: $1"
exit 1
fi
echo "#!/bin/bash" > "$1"
echo "" >> "$1"
echo "$2" >> "$1"
chmod +x "$1"