From e2afe0f7cc5324d7de243867ca0160a6999ab419 Mon Sep 17 00:00:00 2001 From: spongle Date: Sun, 28 Aug 2022 20:42:19 +0100 Subject: [PATCH] . --- shared/bash_profile | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/shared/bash_profile b/shared/bash_profile index 79bc666..2cadac8 100755 --- a/shared/bash_profile +++ b/shared/bash_profile @@ -9,14 +9,8 @@ fi _setpath() { - local paths=( - /usr/local/bin - /usr/local/sbin - /usr/local/sqlite/bin - ) - - local i - for i in ${paths[@]}; do + for i in /usr/local/bin /usr/local/sbin /usr/local/sqlite/bin + do # Move these paths to the front PATH=$(echo $PATH | sed -e "s#$i##g") if [ -d $i ]; then @@ -30,13 +24,8 @@ _setpath() { } _setldpath() { - local paths=( - /usr/local/sqlite/lib - /usr/local/lib - ) - - local i - for i in ${paths[@]}; do + for i in /usr/local/sqlite/lib /usr/local/lib + do # Move these paths to the front LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed -e "s#$i##g") if [ -d $i ]; then @@ -50,12 +39,8 @@ _setldpath() { } _setldrunpath() { - local paths=( - /usr/local/sqlite/lib - ) - - local i - for i in ${paths[@]}; do + for i in /usr/local/sqlite/lib + do # Move these paths to the front LD_RUN_PATH=$(echo $LD_RUN_PATH | sed -e "s#$i##g") if [ -d $i ]; then