Make x2go reset interactive for new --all

This commit is contained in:
2024-06-30 19:09:14 -04:00
parent e2c84d8201
commit 7102ea9804

View File

@@ -26,7 +26,9 @@ fi
for user in "${user_list[@]}"; do
# Clean local user cache
shopt -s nullglob
caches=(/home/"$user"/.x2go/C-"$user"-*)
shopt -u nullglob
if [[ ${#caches} -gt 0 ]]; then
ask_ok "Remove X2Go cache files for user $user?" &&
rm -rf /home/"$user"/.x2go/C-"$user"-* &&