kiss: use pkg_order for crux-like usage

This commit is contained in:
Dylan Araps 2021-07-06 21:49:44 +03:00
parent c716a4b996
commit 3ac3fdcbf8
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 7 additions and 9 deletions

4
kiss
View File

@ -1521,8 +1521,8 @@ args() {
# Use basename of current directory as package.
set -- "${PWD##*/}"
;;
esac
[!l]-*)
# Order the argument list based on dependence.
pkg_order "$@"
@ -1531,8 +1531,6 @@ args() {
set -- $order
;;
esac
;;
esac
# Rerun the script as root with a fixed environment if needed. We sadly
# can't run singular functions as root so this is needed.