Skip to content

Commit

Permalink
Fix shell check
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Mar 13, 2024
1 parent f37268b commit 292eb4f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/checks.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env bash

set -euxo pipefail

check_scripts() {
shellcheck scripts/*.sh
}

check_nix_fmt() {
nix fmt ./nix flake.nix -- --check
}
Expand All @@ -15,6 +23,7 @@ check_rust_static() {
}

check_all() {
check_scripts
check_nix_fmt
check_nix_static
check_rust_fmt
Expand Down
2 changes: 2 additions & 0 deletions scripts/influx.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euxo pipefail

# Configure InfluxDB to store data within the repository
INFLUXD_BOLT_PATH="$(pwd)/influx/.influxdbv2/influxd.bolt"
export INFLUXD_BOLT_PATH
Expand Down
2 changes: 2 additions & 0 deletions scripts/telegraf.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euxo pipefail

start_telegraf() {
if [[ -z "$INFLUX_TOKEN" ]]; then
echo "INFLUX_TOKEN is not set, please run \`use_influx\` first"
Expand Down

0 comments on commit 292eb4f

Please sign in to comment.