Files
shell_tests/script.sh
2021-06-22 17:05:36 +02:00

16 lines
216 B
Bash

#! /bin/bash
set -u
set -e
source $(dirname $0)/myfunctions.sh
if [ $# -ne 2 ] ; then
myerror 42 "Usage: $0 arg1 arg2"
fi
if [ $(whoami) != "root" ] ; then
myerror 43 "Please sudo first"
fi
echo "good job"