Show More
@@ -27,10 +27,10 b' cleanup_exit() {' | |||
|
27 | 27 | trap "cleanup_exit" 0 # normal exit |
|
28 | 28 | trap "exit 255" HUP INT QUIT ABRT TERM |
|
29 | 29 | |
|
30 | HGTMP="${TMPDIR-/tmp}/hgeditor.$RANDOM.$RANDOM.$RANDOM.$$" | |
|
31 | (umask 077 && mkdir "$HGTMP") || { | |
|
32 |
|
|
|
33 |
|
|
|
30 | HGTMP=$(mktemp -d ${TMPDIR-/tmp}/hgeditor.XXXXXX) | |
|
31 | [ x$HGTMP != x -a -d $HGTMP ] || { | |
|
32 | echo "Could not create temporary directory! Exiting." 1>&2 | |
|
33 | exit 1 | |
|
34 | 34 | } |
|
35 | 35 | |
|
36 | 36 | ( |
General Comments 0
You need to be logged in to leave comments.
Login now