dont run find_or_open when sourcing

This commit is contained in:
zerf58 2025-07-02 09:02:46 -07:00
parent 61b06082d0
commit d187c37f03

View file

@ -11,7 +11,6 @@ find_or_open(){
} }
# this can either be sourced by buttons.sh or run as a standalone script # this can either be sourced by buttons.sh or run as a standalone script
# when running as a standalone, execute it: if [ "${BASH_SOURCE[0]}" = "$0" ] && [[ -n $1 ]]; then
if [[ -n $1 ]]; then
find_or_open "$1" find_or_open "$1"
fi fi