Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Update nyaa
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo authored Dec 7, 2022
1 parent a3265de commit 3ed7882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nyaa
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ build_package() {

add_repo_dir "$1"

unset prepare # Unset prepare before sourcing
unset -f prepare # Unset prepare before sourcing

# Sourcing the package runfile
# shellcheck source=/dev/null
Expand Down Expand Up @@ -338,8 +338,8 @@ remove_packages() {
for i in $packages
do
[ ! -f "$ROOT/$INSTALLED_DIR/$i/list_files" ] && err "nyaa: package $i is not installed"
unset custom_uninstall # Unset custom_uninstall before sourcing
unset post_uninstall # unset post_uninstall before sourcing
unset -f custom_uninstall # Unset custom_uninstall before sourcing
unset -f post_uninstall # unset post_uninstall before sourcing
#shellcheck source=/dev/null
. "$INSTALLED_DIR/$i/run"
if ! command -v custom_uninstall >/dev/null 2>&1
Expand Down

0 comments on commit 3ed7882

Please sign in to comment.