forked from Lainports/opnsense-ports
20 lines
510 B
Text
20 lines
510 B
Text
--- misc/llppac.orig 2015-10-13 20:12:27 UTC
|
|
+++ misc/llppac
|
|
@@ -7,7 +7,7 @@ die() {
|
|
}
|
|
|
|
cachedir="${XDG_CACHE_HOME:-$HOME/.cache}/llpp"
|
|
-test -d "$cachedir" || die "cache directory '$cachedir' does not exist"
|
|
+mkdir -p "$cachedir"
|
|
|
|
caspsuf=
|
|
type=
|
|
@@ -197,7 +197,7 @@ EOF
|
|
*) die "unhandled filter type: '$type'";;
|
|
esac
|
|
|
|
-hash=$(md5sum "$md5of") || die "$hash"
|
|
+hash=$(md5 -q "$md5of") || die "$hash"
|
|
casp=$cachedir/${hash%% *}$caspsuf
|
|
(test -n "$force" -o ! -e "$casp") && eval "$filt" "$conv"
|
|
|