fix(): use '#!/usr/bin/env bash'

devops
jwerle 2 years ago committed by Joseph Werle
parent fea1bc2690
commit c6e2fd1d09

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## prevent sourcing
if [[ ${BASH_SOURCE[0]} != "$0" ]]; then

2
lib/env/env.sh vendored

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if ! type -f bpkg-utils &>/dev/null; then
echo "error: bpkg-utils not found, aborting"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## output usage
usage () {

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## sets optional variable from environment
opt () { eval "if [ -z \"\$$1\" ]; then $1='$2'; fi"; }

@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
if ! type -f bpkg-env &>/dev/null; then
echo "error: bpkg-env not found, aborting"
exit 1

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
VERSION="0.0.1"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
BPKG_JSON="$(which bpkg-json)"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if ! type -f bpkg-utils &>/dev/null; then
echo "error: bpkg-utils not found, aborting"

@ -1,9 +1,4 @@
#!/bin/bash
# Include config rc file if found
CONFIG_FILE="$HOME/.bpkgrc"
# shellcheck disable=SC1090
[[ -f "$CONFIG_FILE" ]] && source "$CONFIG_FILE"
#!/usr/bin/env bash
VERSION="0.1.0"
@ -16,6 +11,15 @@ else
source "$(which bpkg-utils)"
fi
if ! type -f bpkg-env &>/dev/null; then
echo "error: bpkg-env not found, aborting"
exit 1
else
# shellcheck disable=SC2230
# shellcheck source=lib/env/env.sh
source "$(which bpkg-env)"
fi
bpkg_initrc
usage () {

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if ! type -f bpkg-run &>/dev/null; then
echo "error: bpkg-run not found, aborting"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## suggest version
VERSION="0.1.0"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## version
VERSION="0.0.1"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
VERSION="0.0.1"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## Collection of shared bpkg functions

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# # #
# #mmm mmmm # m mmmm
@ -11,7 +11,7 @@
REMOTE=${REMOTE:-https://github.com/bpkg/bpkg.git}
TMPDIR=${TMPDIR:-/tmp}
DEST=${DEST:-${TMPDIR}/bpkg-master}
DEST=${DEST:-$TMPDIR/bpkg-master}
## test if command exists
ftest () {

Loading…
Cancel
Save