15 lines
159 B
Plaintext
15 lines
159 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if [ -f "$1" ] ; then
|
||
|
echo "Error: file exists: $1"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
echo "#!/bin/sh" > "$1"
|
||
|
echo "" >> "$1"
|
||
|
echo "$2" >> "$1"
|
||
|
|
||
|
chmod +x "$1"
|