mirror of
https://github.com/jakeswenson/BitBetter.git
synced 2025-07-12 22:43:27 +00:00
Make scripts work with sh
This commit is contained in:
parent
1f71f2e54c
commit
3d20f0c591
|
@ -3,7 +3,8 @@
|
||||||
# Check for openssl
|
# Check for openssl
|
||||||
command -v openssl >/dev/null 2>&1 || { echo >&2 "openssl required but not found. Aborting."; exit 1; }
|
command -v openssl >/dev/null 2>&1 || { echo >&2 "openssl required but not found. Aborting."; exit 1; }
|
||||||
|
|
||||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
DIR=`dirname "$0"`
|
||||||
|
DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /usr/bin/pwd || /bin/pwd || pwd`
|
||||||
|
|
||||||
# Remove any existing key files
|
# Remove any existing key files
|
||||||
[ ! -e "$DIR/cert.pem" ] || rm "$DIR/cert.pem"
|
[ ! -e "$DIR/cert.pem" ] || rm "$DIR/cert.pem"
|
||||||
|
|
5
build.sh
5
build.sh
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
DIR=`dirname "$0"`
|
||||||
|
DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /usr/bin/pwd || /bin/pwd || pwd`
|
||||||
|
|
||||||
# If there aren't any keys, generate them first.
|
# If there aren't any keys, generate them first.
|
||||||
[ -e "$DIR/.keys/cert.cert" ] || "$DIR/.keys/generate-keys.sh"
|
[ -e "$DIR/.keys/cert.cert" ] || "$DIR/.keys/generate-keys.sh"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
DIR=`dirname "$0"`
|
||||||
|
DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /usr/bin/pwd || /bin/pwd || pwd`
|
||||||
|
|
||||||
docker build -t bitbetter/licensegen "$DIR" # --squash
|
docker build -t bitbetter/licensegen "$DIR" # --squash
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../.. && pwd)"
|
DIR=`dirname "$0"`
|
||||||
|
DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /usr/bin/pwd || /bin/pwd || pwd`
|
||||||
|
|
||||||
# Grab the absolute path to the default pfx location
|
# Grab the absolute path to the default pfx location
|
||||||
cert_path="$DIR/.keys/cert.pfx"
|
cert_path="$DIR/.keys/cert.pfx"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user