Skip to content
Snippets Groups Projects
Commit 4390c67b authored by Jonas Karlsson's avatar Jonas Karlsson
Browse files

POC

parent 5094ab1e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
PROJECT_PATH='https://git.cs.kau.se/api/v4/projects/csma%2Fbash/'
\ No newline at end of file
TREEP='https://git.cs.kau.se/api/v4/projects/csma%2Fbash/repository/tree/?path=scripts'
FILEP='https://git.cs.kau.se/api/v4/projects/csma%2Fbash/repository/files/scripts%2F'
scripts=$(curl --silent ${TREEP}|jq -r .[].name)
if [[ $# -eq 0 ]] ; then
echo "Usage : $0 cmd *args"
echo "Available cmds:" ${scripts}
exit 1
fi
cmd=$1
shift
args="$@"
#execute the script
curl --silent ${FILEP}${cmd}/raw?lfs=true | bash
\ No newline at end of file
#!/bin/bash
cmd=$1
shift 1
args="$@"
echo "Hello executing $cmd with $args"
\ No newline at end of file
echo "Hello with $args"
\ No newline at end of file
#!/bin/bash
echo "World" "$@"
\ No newline at end of file
args="$@"
echo "World with $args"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment