Update mover

small check for mover in empty()
This commit is contained in:
DaRK AnGeL
2025-04-23 12:38:41 +03:00
committed by GitHub
parent eed3969dd5
commit 3f2a498738

View File

@@ -88,6 +88,11 @@ start() {
empty() {
DISK="$1"
if [ ! -d "/mnt/$DISK" ]; then
echo "Error: disk '$DISK' not found"
exit 1
fi
if [ -f $PIDFILE ]; then
if ps h $(cat $PIDFILE) | grep mover ; then
echo "mover: already running"