From f923b782d6d1dae8af03ab9f1ef709dd0c4c6b10 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 3 Apr 2023 01:15:44 +0300 Subject: ak-tempassin is working upon mktemp from coreutils --- bin/ak-tempassin | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bin') 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" -- cgit v1.2.3