added clean command
This commit is contained in:
parent
b1306a73b4
commit
2c209fd7a0
7
pman.sh
7
pman.sh
@ -94,6 +94,12 @@ case "$command_args" in
|
||||
su_needed=true
|
||||
fi
|
||||
;;
|
||||
"clean")
|
||||
command_args="-Scc"
|
||||
if [ "$command" = "pacman" ]; then
|
||||
su_needed=true
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if [ "$more_arguments" = "true" ]; then
|
||||
echo "Invalid command: \"$command $command_args\""
|
||||
@ -112,6 +118,7 @@ case "$command_args" in
|
||||
echo " upgrade - pacman -Syu | upgrades your system"
|
||||
echo " remove - pacman -Rs | remove packages & dependencies"
|
||||
echo " purge - pacman -Rns | remove packages, dependencies & conf"
|
||||
echo " clean - pacman -Scc | remove all package files & trash"
|
||||
echo " config - /etc/pacman.conf | edits pacman configuration"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user