From 8c737344aaa499451b9e207018532dbf3d6ac949 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Tue, 20 Feb 2024 17:09:03 -0500 Subject: [PATCH] style: consolidate bash variables --- bin/champagne | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/champagne b/bin/champagne index d61407d..8fcdf75 100755 --- a/bin/champagne +++ b/bin/champagne @@ -1,8 +1,5 @@ #!/usr/bin/env bash -SCRIPTNAME="$BASH_SOURCE" -SCRIPTDIRNAME=$(readlink -f $(dirname "$SCRIPTNAME")) -TOOLDIR=$(dirname "$SCRIPTDIRNAME") -TOOLNAME=$(basename "$SCRIPTNAME") +TOOLDIR=$(realpath $(dirname $(dirname ${BASH_SOURCE}))) ${TOOLDIR}/main.py "$@"