Skip to content

Instantly share code, notes, and snippets.

@ilyasdc
Created October 4, 2023 20:11
Show Gist options
  • Save ilyasdc/0413a388aa38fe3d096e4f3fe4b7dc75 to your computer and use it in GitHub Desktop.
Save ilyasdc/0413a388aa38fe3d096e4f3fe4b7dc75 to your computer and use it in GitHub Desktop.
fix uninstall.sh
diff --git a/uninstall.sh b/uninstall.sh
index 29fb578..bc7872d 100755
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -58,6 +58,9 @@ sudo systemctl disable --now v4l2-relayd.service
if [[ -f "${INSTALLED_PKG_LIST}" ]]; then
warn "Uninstalling packages from ${INSTALLED_PKG_LIST}"
+ for pkg in $(tac "${INSTALLED_PKG_LIST}"); do
+ uninstall_pkg "$pkg"
+ done
else
# Use the list in this script
for (( i=${#PKGS[@]}-1 ; i>=0 ; i-- )) ; do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment