Created
September 9, 2019 01:19
-
-
Save leobrines/a421a18544852d0d9b4c136be120aab8 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