PHP Classes

File: build/ods

Recommend this page to a friend!
  Classes of Nicola Pietroluongo  >  Fakerino  >  build/ods  >  Download  
File: build/ods
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Fakerino
Generate fake names and other types of fake data
Author: By
Last change:
Date: 6 years ago
Size: 498 bytes
 

Contents

Class file image Download
#!/bin/bash 
DATAPATH="./data"
if [ -n "$1" ]
  then
    DATAPATH=$1
  fi
echo 'Downloading Open Data Sample'
mkdir -p build
php -r "readfile('https://github.com/niklongstone/open-data-sample/archive/master.zip');" >> build/ods.zip

echo 'Extracting files'
unzip -qq -o build/ods.zip -d build/

echo 'Configuring ODS'
\cp -rf build/open-data-sample-master/data/ $DATAPATH

echo 'Removing temporary files'
rm -rf build/open-data-sample-master
rm -rf build/ods.zip

echo 'Open Data Sample Installed'
For more information send a message to info at phpclasses dot org.