initial commit
This commit is contained in:
commit
6ef6f715d7
3 changed files with 55 additions and 0 deletions
14
src/newsh
Executable file
14
src/newsh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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 u+x "$1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue