Update ynh-dev: "for FILE in dir/*" is not equivalent to "for FILE in $(ls dir)" ...

This commit is contained in:
Alexandre Aubin 2024-05-08 14:41:09 +02:00 committed by GitHub
parent f45302e7bc
commit 12e0539655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -313,14 +313,14 @@ function use_git()
;;
yunohost)
for FILE in /ynh-dev/yunohost/bin/*; do
for FILE in $(ls /ynh-dev/yunohost/bin/); do
create_sym_link "/ynh-dev/yunohost/bin/$FILE" "/usr/bin/$FILE"
done
for FILE in /ynh-dev/yunohost/conf/metronome/modules/*; do
for FILE in $(ls /ynh-dev/yunohost/conf/metronome/modules/); do
create_sym_link "/ynh-dev/yunohost/conf/metronome/modules/$FILE" "/usr/lib/metronome/modules/$FILE"
done
for FILE in /ynh-dev/yunohost/share/*; do
for FILE in $(ls /ynh-dev/yunohost/share/); do
create_sym_link "/ynh-dev/yunohost/share/$FILE" "/usr/share/yunohost/$FILE"
done
create_sym_link "/ynh-dev/yunohost/hooks" "/usr/share/yunohost/hooks"