mirror of
https://github.com/limosek/zaf.git
synced 2025-11-01 18:17:37 +01:00
Repaired 'which' detection and user environment checking
This commit is contained in:
@@ -21,7 +21,7 @@ fi
|
||||
if ! zaf_fromcache "$key"; then
|
||||
zaf_fromcache "$key" >/dev/null 2>/dev/null
|
||||
[ $? -eq 3 ] && { zaf_err "Operation $key already in progress."; }
|
||||
if which at >/dev/null 2>/dev/null; then
|
||||
if zaf_which at >/dev/null 2>/dev/null; then
|
||||
at -M now >/dev/null 2>/dev/null <<EOF
|
||||
. $(dirname $0)/preload.sh; tmpf=\$(zaf_tmpfile cache); $@ 2>"\$tmpf" | zaf_tocache_stdin "$key" "$seconds" ; [ -s \$tmpf ] && zaf_wrn <\$tmpf
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user