Skip to content

Commit

Permalink
Fix the condition to run main()
Browse files Browse the repository at this point in the history
  • Loading branch information
slowpeek committed Mar 4, 2024
1 parent 4f9d300 commit d0cb61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hddtemp-lt
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,4 @@ main() {
fi
}

[[ ! ${BASH_SOURCE[0]} == "$0" ]] || main "$@"
[[ ! ${BASH_SOURCE[0]##*/} == "${0##*/}" ]] || main "$@"

0 comments on commit d0cb61d

Please sign in to comment.