diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-22 14:54:42 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-22 14:54:42 -0400 |
| commit | dfff353cf081024f9e145629dd51ef08526bb54d (patch) | |
| tree | 143ea3f1d33edf5d0527768fa9461750e417578a /snag/scripts/get_pkg_attrs.sh | |
| parent | c293d3cc413991e4fb18b963427a6e55afd2b5c0 (diff) | |
basic download and hash with libcurl and libcrypto
Diffstat (limited to 'snag/scripts/get_pkg_attrs.sh')
| -rwxr-xr-x | snag/scripts/get_pkg_attrs.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/snag/scripts/get_pkg_attrs.sh b/snag/scripts/get_pkg_attrs.sh index 932c79c..8c505b5 100755 --- a/snag/scripts/get_pkg_attrs.sh +++ b/snag/scripts/get_pkg_attrs.sh @@ -13,7 +13,7 @@ fi . $1 # output package attributes (type char, value, null delimiter) -echoatt() { [ -n "$2" ] && printf "$1$2\0"; } +echoatt() { [ -n "$2" ] && printf "$1$2\0"; return 0; } echoatt i "$pkg_id" echoatt n "$pkg_name" echoatt d "$pkg_desc" @@ -21,4 +21,4 @@ echoatt w "$pkg_webpage" echoatt l "$pkg_license" echoatt v "$pkg_version" echoatt u "$pkg_source_url" -echoatt h "$pkg_source_hash" +echoatt c "$pkg_source_checksum" |
