chore(kiss-export): remove duplicate string building

This commit is contained in:
zacanger 2020-10-02 23:58:32 +00:00 committed by GitHub
parent 0ded2753c2
commit e886cb5e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,8 @@ done < "$db/$pkg/manifest"
cd "$KISS_ROOT/"
dest="$OLDPWD/$pkg#$ver-$rel.tar.${KISS_COMPRESS:-gz}"
tar cf - "$@" | case ${KISS_COMPRESS:-gz} in
bz2) bzip2 -z ;;
gz) gzip -6 ;;
@ -26,6 +28,6 @@ tar cf - "$@" | case ${KISS_COMPRESS:-gz} in
lz) lzip -z ;;
xz) xz -zT 0 ;;
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"