aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-06-24 18:02:23 +0000
committerMicah Anderson <micah@riseup.net>2008-06-24 18:02:23 +0000
commitca12e5617b1c7a600324e2c6437444627720c62c (patch)
tree21692e13ec99f79839a7dbf8c92571100d583b23 /lib
parentfd6796ad99b90371594c3068e6d8bbbdb2b1d1d5 (diff)
downloadbackupninja-ca12e5617b1c7a600324e2c6437444627720c62c.tar.gz
backupninja-ca12e5617b1c7a600324e2c6437444627720c62c.tar.bz2
made mktemp a requirement for building backupninja, added autotools variables to substitute the proper binary location and removed bad fall-back when mktemp was not there
Diffstat (limited to 'lib')
-rw-r--r--lib/easydialog.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/easydialog.in b/lib/easydialog.in
index d861218..056c76c 100644
--- a/lib/easydialog.in
+++ b/lib/easydialog.in
@@ -48,7 +48,7 @@ gaugeBox() {
}
inputBox() {
- local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
+ local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0
REPLY=
$DIALOG --backtitle "$BACKTITLE" --title "$1" \
@@ -80,7 +80,7 @@ _genericListBox() {
local title=$1
local text=$2
shift 2
- local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
+ local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0
REPLY=
$DIALOG $HELP $_DEFAULT --backtitle "$BACKTITLE" --title "$title" \
@@ -133,7 +133,7 @@ textBox() {
}
passwordBox() {
- local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
+ local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0
REPLY=
$DIALOG --backtitle "$BACKTITLE" --title "$1" \
@@ -175,7 +175,7 @@ listItem() {
##
listDisplay() {
boxtype=$1
- local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
+ local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0
local label
@@ -221,7 +221,7 @@ formItem() {
}
formDisplay() {
- local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
+ local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
max_length=0
for ((i=0; i < ${#_form_labels[@]} ; i++)); do