Skip to content

Commit c1b4a3b

Browse files
committed
fix(dogfood/contents): fix shebang in resource metadata scripts
1 parent 447cc0d commit c1b4a3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dogfood/contents/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ resource "coder_agent" "dev" {
249249
key = "swap_usage_host"
250250
order = 4
251251
script = <<EOT
252-
#!/bin/bash
252+
#!/usr/bin/env bash
253253
echo "$(free -b | awk '/^Swap/ { printf("%.1f/%.1f", $3/1024.0/1024.0/1024.0, $2/1024.0/1024.0/1024.0) }') GiB"
254254
EOT
255255
interval = 10
@@ -262,7 +262,7 @@ resource "coder_agent" "dev" {
262262
order = 5
263263
# get load avg scaled by number of cores
264264
script = <<EOT
265-
#!/bin/bash
265+
#!/usr/bin/env bash
266266
echo "`cat /proc/loadavg | awk '{ print $1 }'` `nproc`" | awk '{ printf "%0.2f", $1/$2 }'
267267
EOT
268268
interval = 60
@@ -283,14 +283,15 @@ resource "coder_agent" "dev" {
283283
key = "word"
284284
order = 7
285285
script = <<EOT
286-
#!/bin/bash
286+
#!/usr/bin/env bash
287287
curl -o - --silent https://www.merriam-webster.com/word-of-the-day 2>&1 | awk ' $0 ~ "Word of the Day: [A-z]+" { print $5; exit }'
288288
EOT
289289
interval = 86400
290290
timeout = 5
291291
}
292292

293293
startup_script = <<-EOT
294+
#!/usr/bin/env bash
294295
set -eux -o pipefail
295296
296297
# Allow synchronization between scripts.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy