shell script improvement

This commit is contained in:
Henri Dohmen 2026-01-08 18:51:28 +01:00
parent 78fc46ef15
commit 73736b73ea
Signed by: hd
GPG key ID: AB79213B044674AE
2 changed files with 27 additions and 19 deletions

View file

@ -1,5 +1,5 @@
#!/bin/sh
set -euo pipefail
set -eu
tmp=$(mktemp -d)
trap 'rm -rf -- "$tmp"' EXIT
@ -41,4 +41,4 @@ jq --arg client "$first_missing" \
&& mv "$tmp/new-syncthing-managed-clients.json" "$FILEPATH"
# Revoke self to handle next client
"$0"
"$0"