16 lines
216 B
Bash
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" |