1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00

Merge pull request #133 from YunoHost-Apps/ynh_print_warn

Fix `ynh_print_warn`
This commit is contained in:
Mateusz 2024-07-04 23:17:49 +02:00 committed by GitHub
commit 186d3eec35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ if [ ! -L "$install_dir/upload" ]; then
if [ -z "$(ls -A "$data_dir/upload")" ]; then if [ -z "$(ls -A "$data_dir/upload")" ]; then
rmdir "$data_dir/upload" rmdir "$data_dir/upload"
else else
ynh_warn "$data_dir/upload is not empty, moving to $data_dir/upload_backup. You can decide to remove it or merge it with the new upload dir." ynh_print_warn "$data_dir/upload is not empty, moving to $data_dir/upload_backup. You can decide to remove it or merge it with the new upload dir."
mv "$data_dir/upload" "$data_dir/upload_backup" mv "$data_dir/upload" "$data_dir/upload_backup"
fi fi
mv "$install_dir/upload" "$data_dir/upload" mv "$install_dir/upload" "$data_dir/upload"