diff --git a/install.sh b/install.sh index 81480cf..ea47dec 100755 --- a/install.sh +++ b/install.sh @@ -200,6 +200,6 @@ install() { # Run installation when executed directly. Tests can source this file to exercise # checksum helpers without downloading or installing. -if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then +if [[ "${BASH_SOURCE[0]:-$0}" == "$0" ]]; then install fi