reorder functions

This commit is contained in:
Lance Vick 2020-11-12 15:02:19 -08:00
parent 79629095db
commit 4ed7bed2d5
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 9 additions and 9 deletions

18
siglog
View File

@ -6,6 +6,15 @@ die() {
exit 1
}
checktools(){
for cmd in "$@"; do
if ! command -v "$1" >/dev/null; then
printf "not found!\n";
return 1;
fi
done
}
gpg_env(){
GNUPGHOME=$(mktemp -d -p /dev/shm/); export GNUPGHOME
killall gpg-agent 2> /dev/null
@ -123,15 +132,6 @@ cmd_usage() {
_EOF
}
checktools(){
for cmd in "$@"; do
if ! command -v "$1" >/dev/null; then
printf "not found!\n";
return 1;
fi
done
}
PROGRAM="${0##*/}"
COMMAND="$1"