speedtest install script creates /usr/local/bin/speedtest so it can be run from terminal (64bit)

pull/532/head
Itai Nelken 4 years ago committed by GitHub
parent 44726d84ed
commit 17dc13bbdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,7 +15,7 @@ tar -xvzf ~/speedtest.tgz || error "failed to extract files!"
cd $HOME
rm ~/speedtest.tgz
echo "Creating shortcut..."
printf "Creating shortcut..."
echo "[Desktop Entry]
Type=Application
Name=Run Speedtest
@ -26,3 +26,10 @@ Categories=Network;WebBrowser;
Path=$HOME/speedtest
Terminal=true
StartupNotify=false" > ~/.local/share/applications/speedtest.desktop || error "failed to create menu shortcut!"
echo "done"
printf "creating /usr/local/bin/speedtest so you can launch from terminal..."
echo "#!/bin/bash
$HOME/speedtest/speedtest" | sudo tee /usr/local/bin/speedtest >/dev/null
sudo chmod +x /usr/local/bin/speedtest
echo "done"

Loading…
Cancel
Save