Skip to content

Commit

Permalink
Fix file deletion in delete-task script
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Sep 24, 2024
1 parent b767e21 commit 60d5671
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imageroot/actions/delete-task/20delete
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ data = json.load(sys.stdin)
task_id = data["task_id"]
localuser = data["localuser"]

for file in glob.iglob("imapsync/"+localuser+'_'+task_id+".*"):
# remove the task cron/env/password/lock files
for file in glob.iglob("*/"+localuser+'_'+task_id+".*"):
os.remove(file)

0 comments on commit 60d5671

Please sign in to comment.