mirror of
https://github.com/limosek/zaf.git
synced 2025-11-01 18:17:37 +01:00
Repaired userparms creation and including libraries
This commit is contained in:
17
lib/zafcache
Normal file
17
lib/zafcache
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
. $(dirname $0)/preload.sh
|
||||
|
||||
help() {
|
||||
zaf_err "$0 seconds cmd..."
|
||||
}
|
||||
|
||||
seconds=$1
|
||||
shift
|
||||
[ -z "$*" ] && help
|
||||
|
||||
parms=$(echo $*|tr -d ' ')
|
||||
if ! zaf_fromcache "$parms"; then
|
||||
$@ | zaf_tocache_stdin "$parms" "$seconds"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user