Skip to content

Commit

Permalink
[recipes] Fix function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jan 3, 2025
1 parent f39f55a commit 30cf698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/linux/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function get-deadline () {

# Get the task deadline.
# If running locally, return a date far in the future to prevent expiration.
get-target-time () {
function get-target-time () {
if [[ -n "$TASK_ID" ]] || [[ -n "$RUN_ID" ]]; then
echo $(($(get-deadline) - $(date +%s) - 5 * 60))
else
Expand Down Expand Up @@ -381,7 +381,7 @@ function disable-ec2-pool () {
}

# Include timestamp in status message.
update-status () {
function update-status () {
update-ec2-status "[$(date -Is)] $*"
}

Expand Down

0 comments on commit 30cf698

Please sign in to comment.