reorder functions
This commit is contained in:
parent
79629095db
commit
4ed7bed2d5
18
siglog
18
siglog
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue