This commit is contained in:
hl committed 2024-12-10 01:57:07 +08:00
1 parent 742c57927f
commit 464f381418
1 file changed
+4 -5
+4 -5
View File
@@ -1,7 +1,6 @@
#/usr/bin/env bash #!/usr/bin/env bash
command="nala" cmd=$((command -v nala &>/dev/null && echo "nala") || echo "apt")
command -v $command &>/dev/null || command="apt" $cmd update
$command update
fd="$1" 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