summaryrefslogtreecommitdiff
path: root/setup_native/scripts
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-27 15:55:40 +0000
committerStephan Bergmann <sbergman@redhat.com>2022-01-28 09:33:59 +0100
commit2d603914d8162317b0ee7b77a73585c32bceb6da (patch)
tree029e98bae1765ce13c2a5b34e083427370257012 /setup_native/scripts
parent7517fc118a1a230ff59f6c629316a8e7e1282dff (diff)
use mktemp for UNPACKDIR
Change-Id: If87fb28193f42e60419aa30b5ba7e4af6e05bbcf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129057 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'setup_native/scripts')
-rw-r--r--setup_native/scripts/install_linux.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/setup_native/scripts/install_linux.sh b/setup_native/scripts/install_linux.sh
index d2b10e88959a..9540a505e974 100644
--- a/setup_native/scripts/install_linux.sh
+++ b/setup_native/scripts/install_linux.sh
@@ -66,9 +66,7 @@ try_to_unpack_languagepack_file()
echo "Unpacking shell script $FILENAME"
TAILLINE=`head --lines=20 $FILENAME | sed --quiet 's/linenum=//p'`
- UNPACKDIR=/var/tmp/install_$$
- mkdir $UNPACKDIR
- # UNPACKDIR=`mktemp -d`
+ UNPACKDIR=`mktemp -d -p /var/tmp`
tail -n +$TAILLINE $FILENAME | gunzip | (cd $UNPACKDIR; tar xvf -)
# Setting the new package path, in which the packages exist