Make more function variables local to avoid polluting the environment
[config/bash.git] / .bash / aliases.d / debian
index 7efbc63..b65caa1 100644 (file)
@@ -10,6 +10,7 @@ if command -v aptitude &> /dev/null;
 then
   function aptitude-remove-dep()
   {
+    local PACKAGES
     PACKAGES=$(apt-cache showsrc "$1" | grep Build-Depends | perl -p -e 's/(?:[\[(].+?[\])]|Build-Depends:|,|\|)//g')
     sudo aptitude markauto "$PACKAGES"
   }