dont run find_or_open when sourcing
This commit is contained in:
parent
61b06082d0
commit
d187c37f03
1 changed files with 2 additions and 3 deletions
|
@ -11,7 +11,6 @@ find_or_open(){
|
|||
}
|
||||
|
||||
# this can either be sourced by buttons.sh or run as a standalone script
|
||||
# when running as a standalone, execute it:
|
||||
if [[ -n $1 ]]; then
|
||||
if [ "${BASH_SOURCE[0]}" = "$0" ] && [[ -n $1 ]]; then
|
||||
find_or_open "$1"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue