Skip to content

Commit

Permalink
change lib_sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bitranox committed Jan 24, 2025
1 parent 14a3a1f commit c802f6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/local_testscripts/lib_bash_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ export MYPYPATH="$(python3 ./testing_tools.py append_immediate_subdirs_to_mypy_p
cd "$save_dir"||exit

function install_or_update_lib_bash() {
if [[ ! -f /usr/local/lib_bash/install_or_update.sh ]]; then
if [[ ! -f /usr/local/lib_bash/lib_bash.sh ]]; then
sudo git clone https://github.com/bitranox/lib_bash.git /usr/local/lib_bash 2>/dev/null
sudo chmod -R 0755 /usr/local/lib_bash 2>/dev/null
sudo chmod -R +x /usr/local/lib_bash/*.sh 2>/dev/null
sudo /usr/local/lib_bash/install_or_update.sh 2>/dev/null
sudo /usr/local/lib_bash/lib_bash.sh 2>/dev/null
else
/usr/local/lib_bash/install_or_update.sh
/usr/local/lib_bash/lib_bash.sh
fi
}

Expand Down
6 changes: 3 additions & 3 deletions tests/local_testscripts/shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ save_dir="$PWD"

# install bash helper scripts
function install_or_update_lib_bash() {
if [[ ! -f /usr/local/lib_bash/install_or_update.sh ]]; then
if [[ ! -f /usr/local/lib_bash/lib_bash.sh ]]; then
sudo git clone https://github.com/bitranox/lib_bash.git /usr/local/lib_bash 2>/dev/null
sudo chmod -R 0755 /usr/local/lib_bash 2>/dev/null
sudo chmod -R +x /usr/local/lib_bash/*.sh 2>/dev/null
sudo /usr/local/lib_bash/install_or_update.sh 2>/dev/null
sudo /usr/local/lib_bash/lib_bash.sh 2>/dev/null
else
/usr/local/lib_bash/install_or_update.sh
/usr/local/lib_bash/lib_bash.sh
fi
}

Expand Down

0 comments on commit c802f6a

Please sign in to comment.