Skip to content

Files

Latest commit

 

History

History
32 lines (26 loc) · 709 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 709 Bytes

Scripts

Note: This repository is public!

To add a script to a build:

  • Create a command line step
  • Give it a name
  • Add the following
#!/bin/bash
SCRIPT_BRANCH="develop"
SCRIPT_DIRECTORY="dir/"
SCRIPT_NAME="test.sh"
source <(curl -s "https://raw.githubusercontent.com/AssetzSMECapital/scripts/$SCRIPT_BRANCH/$SCRIPT_DIRECTORY$SCRIPT_NAME")
#!/bin/bash
SCRIPT_BRANCH="develop"
SCRIPT_DIRECTORY="dir/"
SCRIPT_NAME="test.sh"

curl -o $SCRIPT_NAME "https://raw.githubusercontent.com/AssetzSMECapital/scripts/$SCRIPT_BRANCH/$SCRIPT_DIRECTORY$SCRIPT_NAME" && \
ls && \
echo "$SCRIPT_NAME" && \
chmod +x $SCRIPT_NAME && \
cat $SCRIPT_NAME && \
./$SCRIPT_NAME && \
rm $SCRIPT_NAME