Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
archutils
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
archutils
Commits
6bdf7d70
Commit
6bdf7d70
authored
4 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
cleanpkgs: nice quit when no packages to remove
parent
f70d8bec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#422
failed with stages
in 5 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cleanpkgs
+6
-1
6 additions, 1 deletion
cleanpkgs
with
6 additions
and
1 deletion
cleanpkgs
+
6
−
1
View file @
6bdf7d70
...
...
@@ -16,4 +16,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
exec
pacman
-Rs
$(
pacman
-Qqdt
)
$(
pacman
-Qqm
)
"
$@
"
declare
-a
pkgs
=()
pkgs+
=(
$(
pacman
-Qqdt
)
)
pkgs+
=(
$(
pacman
-Qqm
)
)
((
${#
pkgs
[*]
}
==
0
))
&&
exit
0
exec
pacman
-Rs
"
$@
"
"
${
pkgs
[@]
}
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment