diff --git a/src/scripts/env_init.sh b/src/scripts/env_init.sh new file mode 100755 index 0000000..fe0ef91 --- /dev/null +++ b/src/scripts/env_init.sh @@ -0,0 +1,17 @@ +#!/bin/bash +current_branch=$(git symbolic-ref --short HEAD) + +case $current_branch in \ + "develop") \ + echo "dev"; \ + ;; \ + "test") \ + echo "test"; \ + ;; \ + "master") \ + echo "prod"; \ + ;; \ + *) \ + echo "dev"; \ + ;; \ +esac; \ No newline at end of file