More accurate test to check the existence of the link

This commit is contained in:
Alexandre Aubin 2019-10-09 16:18:37 +02:00
parent f5a1860aec
commit ce7bd7e1ee

View file

@ -152,7 +152,7 @@ function attach_ynhdev()
# #
# The target folders (/var/cache/ynh-dev/...) are then created during the # The target folders (/var/cache/ynh-dev/...) are then created during the
# './ynh-dev use-git yunohost-admin' # './ynh-dev use-git yunohost-admin'
if [[ ! -e ./yunohost-admin/src/dist ]] if [[ ! -L ./yunohost-admin/src/dist ]]
then then
ln -s /var/cache/ynh-dev/yunohost-admin/bower_components ./yunohost-admin/src/ ln -s /var/cache/ynh-dev/yunohost-admin/bower_components ./yunohost-admin/src/
ln -s /var/cache/ynh-dev/yunohost-admin/node_modules ./yunohost-admin/src/ ln -s /var/cache/ynh-dev/yunohost-admin/node_modules ./yunohost-admin/src/