Skip to content

Commit 41b6e58

Browse files
committed
added exclusions & changed main.sh
1 parent e8dac6c commit 41b6e58

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/exclude.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
**/.cache/
66
**/.wine/
77
**/.zoom/
8-
**/*.log
8+
**/*.log
9+
**/Games/
10+
**/.steam/
11+
**/.local/share/Steam/
12+
**/.local/share/Trash/

src/main.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ keep_alive_sudo() {
1313
done
1414
} 2>/dev/null &
1515
keep_alive=$!
16-
echo "sudo keep-alive started"
16+
echo "keep-alive (sudo) started"
1717
return 0
1818
else
19-
echo "sudo authentication failed"
19+
echo "authentication failed; abort"
2020
return 1
2121
fi
2222
}
2323

2424
# keep alive sudo permission
25-
keep_alive_sudo
25+
keep_alive_sudo || exit 1
2626

2727
# execute installation & recovery
2828
source "$ROOT_DIR/inst.sh" # setup package requirements
2929
source "$ROOT_DIR/borgserver.sh" # borg backup & rsync as recovery method
3030

3131
# undo keep alive sudo permission
3232
if [[ -n "$keep_alive" ]] && kill -0 "$keep_alive" 2>/dev/null; then
33-
kill "$keep_alive"
33+
kill "$keep_alive" && echo "removed keep-alive (sudo) process"
3434
fi

0 commit comments

Comments
 (0)