diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-04-03 01:15:44 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-04-03 01:15:44 +0300 |
commit | f923b782d6d1dae8af03ab9f1ef709dd0c4c6b10 (patch) | |
tree | b077cc25328491073032133f0065f6a52ee8cdb7 | |
parent | d747677c2860326e7d673861319dcb0e2149daa4 (diff) | |
download | arching-kaos-tools-f923b782d6d1dae8af03ab9f1ef709dd0c4c6b10.tar.gz arching-kaos-tools-f923b782d6d1dae8af03ab9f1ef709dd0c4c6b10.tar.bz2 arching-kaos-tools-f923b782d6d1dae8af03ab9f1ef709dd0c4c6b10.zip |
ak-tempassin is working upon mktemp from coreutils
-rwxr-xr-x | bin/ak-tempassin | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/ak-tempassin b/bin/ak-tempassin index e692769..bc649c5 100755 --- a/bin/ak-tempassin +++ b/bin/ak-tempassin @@ -1,3 +1,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" |