|
@@ -5,8 +5,9 @@ if [[ "$OS" = "Darwin" ]]; then
|
|
|
defaults write com.github.atom ApplePressAndHoldEnabled -bool false
|
|
|
else
|
|
|
if ! has atom; then
|
|
|
- TMP_FILE="/tmp/atom$$.deb"
|
|
|
- curl -fSL https://atom.io/download/deb -o "$TMP_FILE"
|
|
|
+ URL='https://atom.io/download/deb'
|
|
|
+ TMP_FILE="/tmp/atom.latest.deb"
|
|
|
+ curl -fsSLC- "$URL" -o "$TMP_FILE"
|
|
|
sudo dpkg -i "$TMP_FILE"
|
|
|
rm "$TMP_FILE"
|
|
|
fi
|