mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
Merge pull request #43 from YunoHost-Apps/rm-r
App using rm -rf that was unspotted so far ... to be reported as error by the linter
This commit is contained in:
commit
d5ea4a1348
1 changed files with 2 additions and 2 deletions
|
@ -68,9 +68,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]; then
|
||||||
ynh_setup_source --dest_dir="$tmpdir"
|
ynh_setup_source --dest_dir="$tmpdir"
|
||||||
## clean & copy files needed to final folder
|
## clean & copy files needed to final folder
|
||||||
myynh_clean_source
|
myynh_clean_source
|
||||||
[ -e "$tmpdir/config.php" ] && rm "$tmpdir/config.php"
|
[ -e "$tmpdir/config.php" ] && ynh_secure_remove "$tmpdir/config.php"
|
||||||
cp -a "$tmpdir/." "$final_path"
|
cp -a "$tmpdir/." "$final_path"
|
||||||
rm -R "$tmpdir"
|
ynh_secure_remove "$tmpdir"
|
||||||
## set permissions
|
## set permissions
|
||||||
myynh_set_permissions
|
myynh_set_permissions
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue