Skip to content

Commit

Permalink
1.0.2 - fix multiple bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
RudraSwat committed Jan 31, 2022
1 parent a17c460 commit 8df3c74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="top"></div>

<h1 align="center">Una</h1>
<h3 align="center">v1.0.1</h3>
<h3 align="center">v1.0.2</h3>

<br>

Expand Down
9 changes: 7 additions & 2 deletions una
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ _install() {
fi

info 'creating build directory'
rm -rf "~/.cache/una/pkgs/${pkgname}"
rm -rf "${HOME}/.cache/una/pkgs/${pkgname}"
mkdir -p ~/.cache/una/pkgs && cd ~/.cache/una/pkgs

info "cloning ${pkgname}"
Expand All @@ -87,8 +87,13 @@ _install() {

source "${pkgname}/PKGBUILD"

new_optdepends=()
for depend in "${optdepends[@]}"; do
new_optdepends+=( $(echo "${depend}" | cut -d':' -f1) )
done

info "installing dependencies of ${pkgname}"
for depend in "${depends[@]}" "${makedepends[@]}" "${checkdepends[@]}" "${optdepends[@]}"; do
for depend in "${depends[@]}" "${makedepends[@]}" "${checkdepends[@]}" "${new_optdepends[@]}"; do
dpkg-query -W -f='${Status}' "${depend}" 2>/dev/null | grep -q "ok installed" && true || _install "$depend"
sudo apt-mark auto "$depend" &>/dev/null
pkgname="$1"
Expand Down

0 comments on commit 8df3c74

Please sign in to comment.