Skip to content
Snippets Groups Projects
Commit a9e6584b authored by antux18's avatar antux18
Browse files

T2.sh.

parent d94348b7
No related merge requests found
ex1/T2.sh 100644 → 100755
#!/bin/bash/
#!/bin/bash
#the following command returns the number of arguments
#hint $? will be 0 if there are no errors after any bash command
args=$#
if [ $args -lt 2 ]
then
......@@ -10,4 +10,15 @@ then
fi
folder_path=$1
link=$2
#your implementation goes here
mkdir $folder_path
if [ $? -eq 1 ]
then
exit
fi
ln -s $folder_path $link
if [ $? -eq 1 ]
then
exit
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment