fix for execute from curl

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2024-03-11 13:43:52 +01:00
commit cb86553bfb
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -15,6 +15,6 @@ main () {
echo "${FLAGS_tag} - ${FLAGS_name} . ${FLAGS_dryrun}"
}
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
if [[ "${BASH_SOURCE[0]}" == "${0}" ]] || [[ "${BASH_SOURCE[0]}" == "" ]]; then
main "$@"
fi