From 64a049a1f4245a88781c4cc4d89ab608443208f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Tue, 16 May 2023 02:01:30 -0400 Subject: [PATCH] hardcode path to bashplus --- lib/git-subrepo | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/git-subrepo b/lib/git-subrepo index a6d5d96..4006c19 100755 --- a/lib/git-subrepo +++ b/lib/git-subrepo @@ -12,21 +12,7 @@ set -e export FILTER_BRANCH_SQUELCH_WARNING=1 # Import Bash+ helper functions: -SOURCE=${BASH_SOURCE[0]} -while [[ -h $SOURCE ]]; do - DIR=$( cd -P "$( dirname "$SOURCE" )" && pwd ) - SOURCE=$(readlink "$SOURCE") - [[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE -done -SOURCE_DIR=$(dirname "$SOURCE") - -if [[ -z $GIT_SUBREPO_ROOT ]]; then - # If `make install` installation used: - source "${SOURCE_DIR}/git-subrepo.d/bash+.bash" -else - # If `source .rc` method used: - source "${SOURCE_DIR}/../ext/bashplus/lib/bash+.bash" -fi +source /usr/lib/bash+.bash bash+:import :std can version-check -- 2.40.1