Skip to content

Commit

Permalink
fix(build.sh): only make /tmp/pacstall-no-build with -K (pacstall…
Browse files Browse the repository at this point in the history
…#1174)

Co-authored-by: ook37 <[email protected]>
  • Loading branch information
oklopfer and ook37 authored Jul 6, 2024
1 parent e244409 commit 8c4c647
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions misc/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,12 @@ function install_deb() {
sudo mv "$STAGEDIR/$debname.deb" "$PACDEB_DIR"
sudo chown "$PACSTALL_USER":"$PACSTALL_USER" "$PACDEB_DIR/$debname.deb"
fancy_message info "Package built at ${BGreen}$PACDEB_DIR/$debname.deb${NC}"
fancy_message info "Moving ${BGreen}$STAGEDIR/$pacname${NC} to ${BGreen}${PACDIR}-no-build/$pacname${NC}"
sudo rm -rf "${PACDIR}-no-build/${pacname:?}"
mkdir -p "${PACDIR}-no-build/$pacname"
sudo mv "$STAGEDIR/$pacname" "${PACDIR}-no-build/$pacname"
if [[ $KEEP ]]; then
fancy_message info "Moving ${BGreen}$STAGEDIR/$pacname${NC} to ${BGreen}${PACDIR}-no-build/$pacname${NC}"
sudo rm -rf "${PACDIR}-no-build/${pacname:?}"
mkdir -p "${PACDIR}-no-build/$pacname"
sudo mv "$STAGEDIR/$pacname" "${PACDIR}-no-build/$pacname"
fi
return 0
fi
}
Expand Down

0 comments on commit 8c4c647

Please sign in to comment.