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:
parent
7012876bfc
commit
4d403d240f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue