mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-03 14:17:37 +00:00
avoid using Tomb's PID in temp files and double the random #150
This commit is contained in:
parent
372a1a1cf8
commit
3416ad2d2c
4
tomb
4
tomb
@ -56,7 +56,7 @@ QRENCODE=1
|
||||
MOUNTOPTS="rw,noatime,nodev"
|
||||
|
||||
# prefix for temporary files
|
||||
TMPPREFIX="/dev/shm/$$.$RANDOM."
|
||||
TMPPREFIX="/dev/shm/$RANDOM.$RANDOM."
|
||||
|
||||
# makes glob matching case insensitive
|
||||
unsetopt CASE_MATCH
|
||||
@ -145,7 +145,7 @@ check_shm() {
|
||||
|
||||
# setup a special env var for zsh to create temp files that will
|
||||
# then be deleted at the exit of each function using them.
|
||||
TMPPREFIX="$SHMPREFIX/$$.$RANDOM."
|
||||
TMPPREFIX="$SHMPREFIX/$RANDOM.$RANDOM."
|
||||
return 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user