From f8e85f922820df84d3d2f7427d2c0d8c190d1f91 Mon Sep 17 00:00:00 2001 From: Jaden Weiss Date: Mon, 13 Nov 2017 22:07:43 -0500 Subject: [PATCH] fix bug where remove subcommand tries to remove package called remove --- lpkg.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lpkg.sh b/lpkg.sh index 32754f4..a084be6 100755 --- a/lpkg.sh +++ b/lpkg.sh @@ -243,6 +243,7 @@ elif [ "$1" == "update" ]; then transact $pins || fail "Transaction failed" 3 tmpcleanup elif [ "$1" == "remove" ]; then + shift setup || fail "Failed to create temporary directory" 2 opins=$(cat "$LPKGDIR/pins.list") || fail "Failed to read pin list" 2 for i in $@; do