mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 19:25:11 +01:00
Use unique tmpdir
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
wget "https://discord.com/api/download?platform=linux&format=deb" -O discord.deb
|
|
||||||
sudo dpkg -i discord.deb
|
# Use a uniquely named, temporary directory to download to
|
||||||
|
TMPDIR=$(mktemp -d)
|
||||||
|
|
||||||
|
wget "https://discord.com/api/download?platform=linux&format=deb" -O "${TMPDIR}/discord.deb"
|
||||||
|
sudo dpkg -i "${TMPDIR}/discord.deb"
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
rm "${TMPDIR}/discord.deb"
|
||||||
|
|||||||
Reference in New Issue
Block a user