Fix on bower test file exist condition:

Former conditon to test if bower file exists was wrong

Change-Id: I52d78c6dfa2dc9404ed6436f679d520d8135cf3f
This commit is contained in:
Sebastian Marcet 2015-12-18 17:23:41 -03:00
parent 7012876bfc
commit 4d403d240f
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ function site_init {
php artisan migrate --env=$LARAVEL_ENV
php artisan db:seed --env=$LARAVEL_ENV
# run bower
if [ ! -f "$target_dir/bower.json" ]; then
if [ -f "$target_dir/bower.json" ]; then
bower install --allow-root --config.interactive=false
fi
# activate site
@ -179,7 +179,7 @@ function site_update {
cd $target_dir
php artisan migrate --env=$LARAVEL_ENV
# run bower
if [ ! -f "$target_dir/bower.json" ]; then
if [ -f "$target_dir/bower.json" ]; then
bower install --allow-root --config.interactive=false
fi
# activate site