Skip to content

Instantly share code, notes, and snippets.

@madscatter
Created December 13, 2019 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madscatter/f75e81a10b4ec4f993ce145202c4aa13 to your computer and use it in GitHub Desktop.
Save madscatter/f75e81a10b4ec4f993ce145202c4aa13 to your computer and use it in GitHub Desktop.
#!/bin/bash
pgVolumes=("./data/postgres")
drupalVolumes=("./data/html/modules" "./data/html/profiles" "./data/html/themes" "./data/html/sites")
makeDirs() {
for path in "$@"
do
echo "Creating \"$path\" ..."
mkdir -p "$path"
echo "done."
done
}
echo "started."
makeDirs "${drupalVolumes[@]}"
makeDirs "${pgVolumes[@]}"
echo "finished."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment