aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-reset
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-reset')
-rwxr-xr-xcontrib/kiss-reset19
1 files changed, 10 insertions, 9 deletions
diff --git a/contrib/kiss-reset b/contrib/kiss-reset
index d3ca11b..9845109 100755
--- a/contrib/kiss-reset
+++ b/contrib/kiss-reset
@@ -5,16 +5,17 @@
#
# kiss-reset: Remove all packages except for the base.
-set -- \
- $(kiss l | while read -r pkg _; do
- case $pkg in
- baselayout|binutils|bison|busybox|bzip2|curl|flex|gcc|git|\
- gzip|kiss|libelf|libressl|linux-headers|m4|make|mandoc|musl|\
- perl|pkgconf|rsync|xz|zlib) ;;
+set --
- *) printf '%s\n' "$pkg" ;;
- esac
- done)
+kiss l | while read -r pkg _; do
+ case $pkg in
+ baselayout|binutils|bison|busybox|bzip2|curl|flex|gcc|git|\
+ gzip|kiss|libelf|libressl|linux-headers|m4|make|musl|perl|\
+ pkgconf|rsync|xz|zlib) ;;
+
+ *) set -- "$@" "$pkg" ;;
+ esac
+done
[ "$1" ] && {
printf 'WARNING: This will remove \033[1m%s\033[m package(s).\n' "$#"