This commit is contained in:
hl 2024-11-19 17:44:18 +08:00
parent ea26bb417b
commit 92aa59c3ff
2 changed files with 5 additions and 1 deletions

View File

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

4
osc-copy.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -e
echo -e "\e]52;c;$(cat $1 | base64)\a"