Skip to content

Commit

Permalink
make user specific temp files in case of multi-user machine
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Jan 7, 2025
1 parent aac9ba6 commit 0766b0f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Taskfile.helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ vars:
solo_keys_dir: "{{ .solo_cache_dir }}/keys"
solo_bin_dir: "{{ .solo_user_dir }}/bin"
run_build_file:
sh: (echo "/tmp/run-build-$(date +%Y%m%d%H%M%S)")
sh: (echo "/tmp/${USER}-run-build-$(date +%Y%m%d%H%M%S)")
var_check_file:
sh: (echo "/tmp/var-check-$(date +%Y%m%d%H%M%S)")
sh: (echo "/tmp/${USER}-var-check-$(date +%Y%m%d%H%M%S)")
minio_flag_file:
sh: (echo "/tmp/minio-flag-$(date +%Y%m%d%H%M%S)")
sh: (echo "/tmp/${USER}-minio-flag-$(date +%Y%m%d%H%M%S)")
solo_install_file:
sh: (echo "/tmp/solo-install-$(date +%Y%m%d%H%M%S)")
sh: (echo "/tmp/${USER}-solo-install-$(date +%Y%m%d%H%M%S)")

env:
SOLO_CLUSTER_SETUP_NAMESPACE: solo-setup
Expand Down Expand Up @@ -423,7 +423,7 @@ tasks:
silent: true
cmds:
- echo "Cleaning up temporary files..."
- rm -f /tmp/run-build-* || true
- rm -f /tmp/var-check-* || true
- rm -f /tmp/minio-flag-* || true
- rm -f /tmp/solo-install-* || true
- rm -f /tmp/${USER}-run-build-* || true
- rm -f /tmp/${USER}-var-check-* || true
- rm -f /tmp/${USER}-minio-flag-* || true
- rm -f /tmp/${USER}-solo-install-* || true

0 comments on commit 0766b0f

Please sign in to comment.