forked from kiss-community/kiss
Merge pull request #192 from zacanger/patch-1
chore(kiss-export): remove duplicate string building
This commit is contained in:
commit
54421ff0f2
@ -19,6 +19,8 @@ done < "$db/$pkg/manifest"
|
|||||||
|
|
||||||
cd "$KISS_ROOT/"
|
cd "$KISS_ROOT/"
|
||||||
|
|
||||||
|
dest="$OLDPWD/$pkg#$ver-$rel.tar.${KISS_COMPRESS:-gz}"
|
||||||
|
|
||||||
tar cf - "$@" | case ${KISS_COMPRESS:-gz} in
|
tar cf - "$@" | case ${KISS_COMPRESS:-gz} in
|
||||||
bz2) bzip2 -z ;;
|
bz2) bzip2 -z ;;
|
||||||
gz) gzip -6 ;;
|
gz) gzip -6 ;;
|
||||||
@ -26,6 +28,6 @@ tar cf - "$@" | case ${KISS_COMPRESS:-gz} in
|
|||||||
lz) lzip -z ;;
|
lz) lzip -z ;;
|
||||||
xz) xz -zT 0 ;;
|
xz) xz -zT 0 ;;
|
||||||
zst) zstd -z ;;
|
zst) zstd -z ;;
|
||||||
esac > "$OLDPWD/$pkg#$ver-$rel.tar.${KISS_COMPRESS:-gz}"
|
esac > "$dest"
|
||||||
|
|
||||||
printf 'created %s\n' "$OLDPWD/$pkg#$ver-$rel.tar.${KISS_COMPRESS:-gz}"
|
printf 'created %s\n' "$dest"
|
||||||
|
Loading…
Reference in New Issue
Block a user