This commit is contained in:
hl 2024-12-10 01:57:07 +08:00
parent 742c57927f
commit 464f381418

View File

@ -1,7 +1,6 @@
#/usr/bin/env bash
#!/usr/bin/env bash
command="nala"
command -v $command &>/dev/null || command="apt"
$command update
cmd=$((command -v nala &>/dev/null && echo "nala") || echo "apt")
$cmd update
fd="$1"
sed "s/ /\n/g" $fd | awk '!/^ *(#|$)/' | xargs -r $command install --no-install-recommends -y
sed "s/ /\n/g" $fd | awk '!/^ *(#|$)/' | xargs -r $cmd install --no-install-recommends -y