Clean up CI bash scripts, add docs/STYLE_GUIDE.md

This commit is contained in:
Aneesh Agrawal 2016-04-30 23:29:06 -04:00
parent a868bb2a90
commit 1e0d039511
6 changed files with 56 additions and 16 deletions

View file

@ -1,11 +1,12 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Make sure listed files do not contain "unwrap"
set -o errexit
set -o nounset
set -o pipefail
cd $(git rev-parse --show-toplevel) # cd into repo root so make sure paths works in any case
cd "$(git rev-parse --show-toplevel)" # cd into repo root so make sure paths works in any case
# files that should not contain "unwrap"
FILES=("components/compositing/compositor.rs"