Rework /usr/bin/env from sh to bash
pre-commit, launcher, _colors, api:gen, bootstrap, build, cleanup, container_id, container_ids, debug:send, downkill, env, logs, migrate, pkg:update, ps, python, restart, setup:dev, shell, start, stop, and ui_dev
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
# . "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
# npm test
|
||||
|
||||
2
launcher
2
launcher
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
export OB_CMD=$1;
|
||||
export OB_CMD_ARGS=$2;
|
||||
export OB_CMD_OPT1=${3:-""};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# https://github.com/ppo/bash-colors (v0.3.0)
|
||||
c() { [ $# == 0 ] && printf "\e[0m" || printf "$1" | sed 's/\(.\)/\1;/g;s/\([SDIUFNHT]\)/2\1/g;s/\([KRGYBMCW]\)/3\1/g;s/\([krgybmcw]\)/4\1/g;y/SDIUFNHTsdiufnhtKRGYBMCWkrgybmcw/12345789123457890123456701234567/;s/^\(.*\);$/\\e[\1m/g'; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_api_gen () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
# From https://stackoverflow.com/a/44660519/702738
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_build() {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_cleanup() {
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
docker ps -aqf "name=$(yq -r .services.$1.container_name alpha-compose.override.yml)"
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export_container_ids() {
|
||||
export ID_OB_UI=$(cmd/container_id "ui");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
pastebin() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_down_kill() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
# used in ./ob/cmd/* scripts ran by ./launcher
|
||||
. ./cmd/_colors
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_logs() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
migration_message="$OB_CMD_ARGS"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
pkg_update () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_restart() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_setup_dev () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_shell() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
. ./cmd/env
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
. ./cmd/env
|
||||
|
||||
run_uidev() {
|
||||
|
||||
Reference in New Issue
Block a user