mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
kiss: remove subshell from kiss c
This commit is contained in:
parent
bc58b6613e
commit
0980dc877d
12
kiss
12
kiss
@ -935,6 +935,11 @@ pkg_checksums() {
|
|||||||
|
|
||||||
case $_res in */*[!.])
|
case $_res in */*[!.])
|
||||||
sh256 "$_res"
|
sh256 "$_res"
|
||||||
|
|
||||||
|
# Store the generated checksums in a string for use internally
|
||||||
|
# without the need for subshells.
|
||||||
|
_hash="$_hash${_hash:+"
|
||||||
|
"}$hash"
|
||||||
esac
|
esac
|
||||||
done < "$repo_dir/sources" || die "$1" "Failed to generate checksums"
|
done < "$repo_dir/sources" || die "$1" "Failed to generate checksums"
|
||||||
}
|
}
|
||||||
@ -1797,15 +1802,14 @@ args() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
sums=$(pkg_checksums "$pkg")
|
pkg_checksums "$pkg"
|
||||||
|
|
||||||
[ "$sums" ] || {
|
[ "$_hash" ] || {
|
||||||
log "$pkg" "No sources needing checksums"
|
log "$pkg" "No sources needing checksums"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
printf '%s\n' "$sums"
|
printf '%s\n' "$_hash" > "$repo_dir/checksums"
|
||||||
printf '%s\n' "$sums" > "$repo_dir/checksums"
|
|
||||||
log "$pkg" "Generated checksums"
|
log "$pkg" "Generated checksums"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user