Skip to content

Commit

Permalink
ensure tar and xz are present before creating archive
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalus committed Jan 10, 2023
1 parent eb5a209 commit debc4fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ path = http://jpalus.fastmail.com.user.fm/dists/th/PLD/$ARCH/RPMS/
signed = yes
EOF
rpm --root="$CHROOT_DIR" -qa|sort > "$SCRIPT_DIR/$RELEASE_NAME.packages"
check_dep tar
check_dep xz
run_log_priv "Creating archive $SCRIPT_DIR/$RELEASE_NAME.tar.xz" tar -Jcpf "$SCRIPT_DIR/$RELEASE_NAME.tar.xz" -C "$CHROOT_DIR" .

if [ "$(id -u)" != "0" ]; then
Expand Down

0 comments on commit debc4fc

Please sign in to comment.