diff --git a/Labb4/ovning3_script1.sh b/Labb4/ovning3_script1.sh index c543452..eedef33 100755 --- a/Labb4/ovning3_script1.sh +++ b/Labb4/ovning3_script1.sh @@ -9,6 +9,7 @@ File="$1" Old="$2" New="$3" +Script=`basename $0` # Sanity checks if [ $# -ne 3 ]; then @@ -17,7 +18,7 @@ if [ $# -ne 3 ]; then cat $1 # just print it fi else - echo "Usage $0 " + echo "Usage $Script " exit 2 # If it dosen't, exit and print usage fi fi