aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-tempassin
blob: bc649c52277a114bd716fb4e383243a09016344d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
AK_TEMP="mktemp -d aktmp-XXXXXXX"
logit(){
    ak-logthis <"$PROGRAM"> "$1" "$2"
}
if [ ! -d "$AK_TEMP" ]
then
    logit "[ERROR]" "Could not make $AK_TEMP directory to work in"
    echo "Could not make $AK_TEMP directory to work in"
    exit 1
fi
     
logit "[INFO]" "$AK_TEMP created successfully"
echo "$AK_TEMP"