improve scripts

This commit is contained in:
2024-05-23 11:30:18 -04:00
parent 50087596d0
commit 42278169d5
13 changed files with 81 additions and 70 deletions

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
if compgen -G "/home/default/syncthing/*/.stversions/*" > /dev/null; then
rm -rf /home/default/syncthing/*/.stversions/*
echo "deleted all .stversions"
else
echo "no .stversions to remove"
fi