-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make shell scripts POSIX-compliant (#879)
Fixes #878
- Loading branch information
1 parent
0356c38
commit 6f08454
Showing
3 changed files
with
7 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
#! /bin/bash | ||
|
||
# Exit if any subcommand fails | ||
set -e | ||
set -o pipefail | ||
#!/bin/sh -e | ||
|
||
# Precompile tasks if not in production and not in CI | ||
# Also allow skipping precompilation with an ENV var | ||
if [ "$LUCKY_ENV" != "production" ] && [ -z "$CI" ] && [ -z "$SKIP_LUCKY_TASK_PRECOMPILATION" ]; then | ||
shards build && \ | ||
mkdir -p ../../bin && \ | ||
cp -r $(pwd)/bin $(pwd)/../.. | ||
shards build | ||
mkdir -p ../../bin | ||
cp -r $PWD/bin $PWD/../.. | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters