irongit
rango/dev
22 lines440 B
1#!/bin/bash
2# For development only
3
4# if no venv
5if [ ! -d "venv" ]; then
6 # if no args or init, run init
7 if [ -z "$1" ] || [ "$1" = "init" ]; then
8 bash devscripts/init
9 exit 0
10 else
11 echo "No venv found, run init first"
12 exit 1
13 fi
14fi
15
16# run devscript for args 1+ if they exist
17if [ -n "$1" ]; then
18 source venv/**/activate
19 bash devscripts/$1 ${@:2}
20else
21 echo "No arguments provided"
22fi