script updates

This commit is contained in:
John Lancaster
2024-09-29 21:50:12 +00:00
parent b2088dd656
commit e7a6a5ab1f
6 changed files with 16 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
cleanup_except() {
@@ -22,9 +23,8 @@ cleanup_except() {
done
}
SCRIPT_DIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
REPO_DIR=$(dirname $SCRIPT_DIR)
alias compose="compose -f $REPO_DIR/docker-compose.yml"
readonly SCRIPT_DIR=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
readonly REPO_DIR=$(cd $(dirname $SCRIPT_DIR) && pwd)
docker compose down