1
0
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:
Lukas Macura
2016-04-19 10:37:39 +02:00
parent 84f7e55078
commit ddbdff55d9
7 changed files with 48 additions and 29 deletions

17
lib/zafcache Normal file
View 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