1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-19 13:00:05 -07:00

kiss-new: Clean up

This commit is contained in:
Dylan Araps 2019-06-29 09:46:32 +03:00
parent add5b98368
commit 56bf33c684

View File

@ -247,7 +247,8 @@ args() {
case $1 in case $1 in
# Build the list of packages. # Build the list of packages.
b*) b*)
shift
[ "$1" ] || die "'kiss build' requires an argument."
;; ;;
# Generate checksums for packages. # Generate checksums for packages.
@ -255,20 +256,17 @@ args() {
shift shift
[ "$1" ] || die "'kiss checksum' requires an argument." [ "$1" ] || die "'kiss checksum' requires an argument."
pkg_checksums "$@" pkg_checksums "$@"
exit
;; ;;
# List installed packages. # List installed packages.
l*) l*)
shift shift
pkg_list "$@" pkg_list "$@"
exit
;; ;;
# Print version and exit. # Print version and exit.
v*) v*)
log "$kiss 0.1.10" log "$kiss 0.1.10"
exit
;; ;;
# Catch all invalid arguments as well as # Catch all invalid arguments as well as
@ -281,7 +279,6 @@ args() {
"list: List packages." \ "list: List packages." \
"remove: Remove a package." \ "remove: Remove a package." \
"update: Check for updates." "update: Check for updates."
exit
;; ;;
esac esac
} }