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:
jerlendds
2023-11-05 07:17:46 -07:00
parent 8f2f9d9ddb
commit 30a83ee05f
23 changed files with 23 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
# . "$(dirname -- "$0")/_/husky.sh"
# npm test

View File

@@ -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:-""};

View File

@@ -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'; }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_api_gen () {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
# From https://stackoverflow.com/a/44660519/702738

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_build() {

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_cleanup() {

View File

@@ -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)"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
export_container_ids() {
export ID_OB_UI=$(cmd/container_id "ui");

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
pastebin() {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_down_kill() {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
# used in ./ob/cmd/* scripts ran by ./launcher
. ./cmd/_colors

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_logs() {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
migration_message="$OB_CMD_ARGS"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
pkg_update () {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_ps () {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_restart() {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_setup_dev () {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_shell() {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
. ./cmd/env
run_uidev() {