Enabled buildbot_steps script to be sourced or ran directly by bash #2

Manually merged
maxweiss merged 1 commits from maxweiss/ipxe_scripts:source_fix into master 2021-04-29 21:53:48 +02:00
Contributor

This change allows the script to be sourced without running any code, but if it is run as a script, it then executes the function (and function args) bashed on the arguments provided when the script is run.

This only works with bash however, and may not work in other shells.

This change allows the script to be sourced without running any code, but if it is run as a script, it then executes the function (and function args) bashed on the arguments provided when the script is run. This only works with bash however, and may not work in other shells.
maxweiss requested review from PeterSurda 2021-04-29 07:17:09 +02:00
maxweiss force-pushed source_fix from 8db64f61eb to f6778dec14 2021-04-29 07:58:12 +02:00 Compare
PeterSurda approved these changes 2021-04-29 21:46:59 +02:00
maxweiss manually merged commit d014b6acfa into master 2021-04-29 21:53:48 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sysdeploy/ipxe_scripts#2
No description provided.