diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-05-04 08:29:19 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-05-04 08:29:19 +0100 | 
| commit | 7acec7a3a1d40a38b88b56e9c56087da263f30d1 (patch) | |
| tree | b071143e39f5b4769e30ffbd60dd8c26e2b2407b /include/init.sh | |
| parent | 93ba36ae456cad1e0766c1020ac2dfdb013b6411 (diff) | |
init.sh: simplify dependencies handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
| -rw-r--r-- | include/init.sh | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/include/init.sh b/include/init.sh index 7026594a..fc321605 100644 --- a/include/init.sh +++ b/include/init.sh @@ -26,10 +26,7 @@ xbmk_init()  	export PWD="$xbmkpwd" -	if [ $# -gt 0 ] && [ "$1" = "dependencies" ]; then -		install_packages "$@" || exit 1 -		exit 0 -	fi +	[ $# -gt 0 ] && [ "$1" = "dependencies" ] && x_ xbmkpkg "$@" && exit 0  	id -u 1>/dev/null 2>/dev/null || $err "suid check failed (id -u)"  	[ "$(id -u)" != "0" ] || $err "this command as root is not permitted" @@ -40,7 +37,7 @@ xbmk_init()  	done  } -install_packages() +xbmkpkg()  {  	[ $# -lt 2 ] && $err "fewer than two arguments"  	[ $# -gt 2 ] && reinstall="$3" | 
