Improve shell portability (#249)

This commit is contained in:
Sung Won Cho 2019-08-13 12:54:06 +10:00 committed by GitHub
commit a3ee4fbc21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 18 additions and 18 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# build.sh compiles dnote binary for target platforms. It is resonsible for creating
# distributable files that can be released by a human or a script.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# dev.sh builds a new binary and replaces the old one in the PATH with it
set -eux

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# dump_schema.sh dumps the current system's dnote schema
set -eux

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# run_server_test.sh runs server test files sequentially
# https://stackoverflow.com/questions/23715302/go-how-to-run-tests-for-multiple-packages

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eux
basePath="$GOPATH/src/github.com/dnote/dnote/pkg/server/api"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# setup.sh installs programs and depedencies necessary to run the project locally
# usage: ./setup.sh
set -eux

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# shellcheck disable=SC1090
# test-local.sh runs api tests using local setting
set -eux

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# test.sh runs api tests. It is to be invoked by other scripts that set
# appropriate env vars.
set -eux

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# create-migration.sh creates a new SQL migration file for the
# server side Postgres database using the sql-migrate tool.
set -eux

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
go get -v github.com/rubenv/sql-migrate/...

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eux
version=$1

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function remove_notice {
sed -i -e '/\/\* Copyright/,/\*\//d' "$1"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# release.sh releases the tarballs and checksum in the build directory
# to GitHub and brew. A prerequisite is to build those files using build.sh.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# build.sh builds a production bundle
set -eux

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# build.sh builds a bundle
set -ex

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# shellcheck disable=SC1090
# dev.sh builds and starts development environment for standalone app
set -eux -o pipefail

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# setup.sh prepares the directory structure and copies static files
set -eux -o pipefail

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eux
basePath="$GOPATH/src/github.com/dnote/dnote"