Commit 0842f92

mo <mo.khan@gmail.com>
2018-12-08 02:11:46
fix shellcheck errors.
1 parent ee44123
Changed files (2)
bin/bootstrap
@@ -15,7 +15,7 @@ fi
 if [ -f ".ruby-version" ] && [ -z "$(rbenv version-name 2>/dev/null)" ]; then
   echo "==> Installing Ruby…"
   rbenv install --skip-existing
-  which bundle >/dev/null 2>&1  || {
+  command -v bundle >/dev/null 2>&1  || {
     gem install bundler
     rbenv rehash
   }
bin/docker-build
@@ -4,12 +4,12 @@ set -e
 
 bin/package
 
-FULL_NAME=$(ls pkg/*.tar.gz | xargs basename | cut -d'.' -f1)
+FULL_NAME=$(find pkg/*.tar.gz -print0 | xargs -0 basename | cut -d'.' -f1)
 NAME=$(echo "$FULL_NAME" | cut -d'-' -f1)
 VERSION=$(echo "$FULL_NAME" | cut -d'-' -f2)
 
 docker pull ruby:2.5-alpine
-echo "Building..." $NAME:$VERSION
+echo "Building..." "$NAME":"$VERSION"
 docker image build \
   -t "$NAME":"$VERSION" \
   -t "$NAME":latest \