updateall/scripts : remaniement

This commit is contained in:
Ahurac 2024-04-12 09:39:27 +02:00
parent 895726a7d6
commit 7536613376
8 changed files with 18 additions and 25 deletions

View file

@ -1,5 +1,7 @@
#!/bin/sh -ex
[ "$(whoami)" != root ] && exec sudo "$0" "$@"
#!/usr/bin/env sh
[ "$(whoami)" != root ] && exec sudo -- "$0" "$@"
set -x -e
apt-get clean
apt-get update
apt-file update

View file

@ -1,8 +1,7 @@
#!/usr/bin/env sh
set -x -e
[ "$(whoami)" != root ] && exec sudo -- "$0" "$@"
set -e -x
aura -Cc 0
aura -Cv
aura -Fy

View file

@ -1,5 +0,0 @@
#!/bin/sh -ex
apt clean
pkg update
pkg upgrade
apt autopurge -y

View file

@ -1,5 +1,4 @@
#!/usr/bin/env sh
cd ~/docker || exit
for i in *; do (set -e

View file

@ -1,2 +1,3 @@
#!/bin/sh -ex
sudo waydroid upgrade
#!/usr/bin/env sh
set -x
exec sudo waydroid upgrade

View file

@ -1,2 +1,3 @@
#!/bin/sh -ex
yabridgectl sync
#!/usr/bin/env sh
set -x
exec yabridgectl sync

View file

@ -1,25 +1,20 @@
#!/bin/sh -x
if [ -z "$SSH_AGENT_PID" ]; then
exec ssh-agent "$0" "$@"
fi
#!/usr/bin/env sh
[ -z "$SSH_AGENT_PID" ] && exec ssh-agent -- "$0" "$@"
ssh-add
update_repo() {
cd "$1" || return
cd -- "$1" || return
printf 'Updating repository \033[1m%s\033[0m...\n' "$1"
git pull
}
cd ~/git || exit
set +x
for i in *; do
while [ "$(jobs -p | wc -l)" -ge 4 ]; do
sleep 1
done
update_repo "$i" &
done
wait

View file

@ -1,2 +1,3 @@
#!/bin/sh -x
nvim +PaqSync
#!/usr/bin/env sh
set -x
exec nvim +PaqSync