Skip to content

Instantly share code, notes, and snippets.

@leobrines
Created September 9, 2019 01:19
Show Gist options
  • Save leobrines/a421a18544852d0d9b4c136be120aab8 to your computer and use it in GitHub Desktop.
Save leobrines/a421a18544852d0d9b4c136be120aab8 to your computer and use it in GitHub Desktop.
Bash Script For Install Gdrive
#!/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