From 9dc547a1c57e46e9ab66d35512ed352a1a3a443b Mon Sep 17 00:00:00 2001 From: cwjordan Date: Fri, 15 Apr 2016 10:34:40 -0400 Subject: [PATCH] Update mysql-export.sh The mktemp command requires the XXXXXX template to be the end of the file name. So phpmyadmin_export.XXXXXX.tmp doesn't work, it needs to be phpymadmin_export.XXXXXX instead. --- mysql-export.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-export.sh b/mysql-export.sh index 2c643ea..0b40975 100755 --- a/mysql-export.sh +++ b/mysql-export.sh @@ -133,7 +133,7 @@ fi MKTEMP=/bin/tempfile if [ ! -x $MKTEMP ]; then MKTEMP=`which mktemp` - result=$($MKTEMP "$TMP_FOLDER/phpmyadmin_export.XXXXXX.tmp") + result=$($MKTEMP "$TMP_FOLDER/phpmyadmin_export.XXXXXX") else result=$($MKTEMP "$TMP_FOLDER/phpmyadmin_export.$RANDOM.tmp") fi