reorder functions
This commit is contained in:
parent
79629095db
commit
4ed7bed2d5
18
siglog
18
siglog
|
@ -6,6 +6,15 @@ die() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checktools(){
|
||||||
|
for cmd in "$@"; do
|
||||||
|
if ! command -v "$1" >/dev/null; then
|
||||||
|
printf "not found!\n";
|
||||||
|
return 1;
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
gpg_env(){
|
gpg_env(){
|
||||||
GNUPGHOME=$(mktemp -d -p /dev/shm/); export GNUPGHOME
|
GNUPGHOME=$(mktemp -d -p /dev/shm/); export GNUPGHOME
|
||||||
killall gpg-agent 2> /dev/null
|
killall gpg-agent 2> /dev/null
|
||||||
|
@ -123,15 +132,6 @@ cmd_usage() {
|
||||||
_EOF
|
_EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
checktools(){
|
|
||||||
for cmd in "$@"; do
|
|
||||||
if ! command -v "$1" >/dev/null; then
|
|
||||||
printf "not found!\n";
|
|
||||||
return 1;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
PROGRAM="${0##*/}"
|
PROGRAM="${0##*/}"
|
||||||
COMMAND="$1"
|
COMMAND="$1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue