Skip to content

Instantly share code, notes, and snippets.

@madeingnecca
Created April 2, 2019 16:29
Show Gist options
  • Save madeingnecca/5b4ae23a96d15aeca88e39cdd2425144 to your computer and use it in GitHub Desktop.
Save madeingnecca/5b4ae23a96d15aeca88e39cdd2425144 to your computer and use it in GitHub Desktop.
Drupal download
#!/bin/sh
projectname=$1
wget https://www.drupal.org/download-latest/zip -O drupal-latest.zip
unzip drupal-latest.zip -d $projectname
foldername=$(ls -1 $projectname)
mv $projectname/$foldername/* $projectname/
mv $projectname/$foldername/.* $projectname/
rm -rf $projectname/$foldername
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment