1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

Use unique tmpdir

This commit is contained in:
2025-11-18 10:30:46 +01:00
parent 48f981edce
commit bbf4df0206

View File

@@ -1,3 +1,10 @@
#!/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"