Skip to content

Commit

Permalink
Add shellcheck lintation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizunashi Mana committed Feb 13, 2017
1 parent 2755f95 commit d6b5ab2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
language: c
sudo: false
language: bash
sudo: required

addons:
apt:
sources:
- debian-sid
packages:
- shellcheck

script:
- ./meshi
- shellcheck meshi
- sudo ./install.sh
- export PATH="/opt/local/bin:$PATH"
- meshi

matrix:
fast_finish: true
6 changes: 2 additions & 4 deletions meshi
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
set -eo pipefail
[ -n "$MESHI_DEBUG" ] && set -x

SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)

case "$(uname -s)" in
Darwin ) SHUF_COMMAND='gshuf' ;;
* ) SHUF_COMMAND='shuf' ;;
Expand Down Expand Up @@ -38,8 +36,8 @@ fi


if [ "$1" != '' ]; then
echo $1
echo "$1"
else
cat $MESHI_LIST_PATH | $SHUF_COMMAND | head -1
"$SHUF_COMMAND" "$MESHI_LIST_PATH" | head -1
fi

0 comments on commit d6b5ab2

Please sign in to comment.