Created
August 28, 2014 14:30
-
-
Save gonzaloserrano/92a02c57ea3073b88a0b to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
TMPPATH='/tmp/jsons' | |
if [ $2 ] | |
then | |
scp jh1:~/$1/src/SP/JurassicHunter/Resources/Configuration/data/$2.json $TMPPATH/$2_$1.json | |
scp jh1:~/$1/src/SP/JurassicHunter/Resources/Configuration/metadata/$2.json $TMPPATH/$2_metadata_$1.json | |
else | |
rm -rf $TMPPATH/$1 | |
mkdir -p $TMPPATH/$1 | |
scp -r jh1:~/$1/src/SP/JurassicHunter/Resources/Configuration/data $TMPPATH/$1 | |
scp -r jh1:~/$1/src/SP/JurassicHunter/Resources/Configuration/metadata $TMPPATH/$1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment