Selaa lähdekoodia

Fix docker detection

Tom McKenzie 7 vuotta sitten
vanhempi
sitoutus
2d41a7832e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      .rc.d/docker.sh

+ 1 - 1
.rc.d/docker.sh

@@ -1,4 +1,4 @@
-if [ $(which docker) ]; then
+if [ $(type docker) ]; then
   alias dredisflush="docker-compose exec redis redis-cli FLUSHALL"
   alias dnewmigration="docker-compose exec web bundle exec rails generate migration"
   alias dmigrate="docker-compose exec web bundle exec rake db:migrate"