forked from mir/linux-vm-tools
Update makepkg.sh
use mktemp to get a random build directory for safety and avoid name conflicts
This commit is contained in:
parent
29cbeba837
commit
0728c2cc8c
@ -15,7 +15,8 @@ fi
|
|||||||
sudo pacman -Syu --needed --noconfirm base base-devel git
|
sudo pacman -Syu --needed --noconfirm base base-devel git
|
||||||
|
|
||||||
# Create a build directory in tmpfs
|
# Create a build directory in tmpfs
|
||||||
mkdir /tmp/build && cd "$_"
|
TMPDIR=$(mktemp -d)
|
||||||
|
pushd $TMPDIR
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# XRDP
|
# XRDP
|
||||||
@ -35,3 +36,5 @@ mkdir /tmp/build && cd "$_"
|
|||||||
)
|
)
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
#remove build directory
|
||||||
|
rm -rf $TMPDIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user