Last active
June 18, 2020 16:58
-
-
Save gartmeier/4cc879f6297439f07ce2a226a1d9ff04 to your computer and use it in GitHub Desktop.
Upload Vue.JS project with slides to Pitcher Admin
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
#!/usr/bin/env bash | |
FILE=875483 | |
SLIDES=(1 2 3 4) | |
WORKING_DIR=/tmp/875483_1592496241 | |
if [[ ! -d $WORKING_DIR ]]; then | |
mkdir /tmp/875483_1592496241 | |
fi | |
kudu pull -f $FILE -p $WORKING_DIR | |
npm run build | |
cp -r dist/* $WORKING_DIR | |
for s in "${SLIDES[@]}"; do | |
cp dist/index.html $WORKING_DIR/slide"${s}".html | |
cp dist/index.html $WORKING_DIR/androidOnly/slide"${s}".html | |
cp dist/index.html $WORKING_DIR/iPadOnly/slide"${s}".html | |
cp dist/index.html $WORKING_DIR/windowsOnly/slide"${s}".html | |
done | |
kudu push -f $FILE -p $WORKING_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment