Created
September 9, 2019 01:19
-
-
Save leobrines/27899354a8629adf6fe252f40c40dfb1 to your computer and use it in GitHub Desktop.
Bash Script For Install Gdrive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gdrive_name=gdrive | |
gdrive_bin=/usr/bin/$gdrive_name | |
if [ -f $gdrive_name ] ; then | |
echo "$gdrive_name already existe, probably it's installed..." | |
exit 0 | |
else | |
echo "Downloading Google Drive | Script for Linux x64..." | |
wget -O $gdrive_name https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA &> /dev/null | |
echo "Gdrive downloaded!" | |
chmod +x $gdrive_name | |
sudo mv $gdrive_name $gdrive_bin | |
echo "Running $gdrive_name..." | |
gdrive about | |
echo "Ready! Use 'gdrive list' command to display your files id" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment