Added the appropriate #! magic at the beginning of shell scripts. (Some modern shells don't like scripts to be without it.)
This commit is contained in:
13
first/create_dir
Executable file
13
first/create_dir
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ( cd $1 ) 2>/dev/null
|
||||
then
|
||||
:
|
||||
elif mkdir $1 2>/dev/null
|
||||
then
|
||||
:
|
||||
else
|
||||
echo $0: could not create directory $1 1>&2
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
Reference in New Issue
Block a user