Skip to content

Commit

Permalink
Ran all scripts through shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
docwhat committed Jan 16, 2017
1 parent ac29532 commit e90c8f9
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Sets up all the dependencies, etc. so you can build and test.

set -euo pipefail
# shellcheck source=script/utilities.bash
source "$(dirname "$0")/utilities.bash"

header "Fetching utilites"
Expand Down
2 changes: 2 additions & 0 deletions script/build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# ./script/build all

set -euo pipefail
# shellcheck source=script/utilities.bash
source "$(dirname "$0")/utilities.bash"

progname="docker-gc"

osarch="${1:-native}"
Expand Down
1 change: 1 addition & 0 deletions script/build-container
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Creates a minimal container from source.

set -euo pipefail
# shellcheck source=script/utilities.bash
source "$(dirname "$0")/utilities.bash"

version=$(git describe --tags --long)
Expand Down
1 change: 1 addition & 0 deletions script/coverage
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Generates a coverage report.

set -euo pipefail
# shellcheck source=script/utilities.bash
source "$(dirname "$0")/utilities.bash"

header "Building coverage"
Expand Down
1 change: 1 addition & 0 deletions script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Sets up all the dependencies, etc. so you can build and test.

set -euo pipefail
# shellcheck source=script/utilities.bash
source "$(dirname "$0")/utilities.bash"

header "Linter"
Expand Down
2 changes: 1 addition & 1 deletion script/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Runs the program.

set -euo pipefail
# shellcheck source=script/utilities.bash
source "$(dirname "$0")/utilities.bash"
progname="docker-gc"

typeset -a gofiles=()
for file in *.go; do
Expand Down
1 change: 1 addition & 0 deletions script/test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Runs all tests.

set -euo pipefail
# shellcheck source=script/utilities.bash
source "$(dirname "$0")/utilities.bash"

header "Tests"
Expand Down
4 changes: 2 additions & 2 deletions script/utilities.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#
# Utility functions for pretty output

cd "$(dirname "$0")"
cd ..
set -euo pipefail
cd "$(dirname "$(dirname "$0")")"

sent_header=f
colors=$(( $(tput colors 2> /dev/null || :) + 0 ))
Expand Down
1 change: 1 addition & 0 deletions script/version
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Generates the version.go file with the current tag.

set -euo pipefail
# shellcheck source=script/utilities.bash
source "$(dirname "$0")/utilities.bash"

version=$(git describe --tags --long)
Expand Down

0 comments on commit e90c8f9

Please sign in to comment.