projects
/
config
/
bash.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make more function variables local to avoid polluting the environment
[config/bash.git]
/
.bash
/
aliases.d
/
debian
diff --git
a/.bash/aliases.d/debian
b/.bash/aliases.d/debian
index
7efbc63
..
b65caa1
100644
(file)
--- a/
.bash/aliases.d/debian
+++ b/
.bash/aliases.d/debian
@@
-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"
}