mirror of
https://github.com/YunoHost-Apps/snipeit_ynh.git
synced 2024-09-03 20:26:16 +02:00
fix linter warnings
This commit is contained in:
parent
adddbc1212
commit
baa9700502
2 changed files with 1 additions and 9 deletions
|
@ -30,8 +30,7 @@ exec_as() {
|
||||||
if [[ $USER = $(whoami) ]]; then
|
if [[ $USER = $(whoami) ]]; then
|
||||||
eval $@
|
eval $@
|
||||||
else
|
else
|
||||||
# use sudo twice to be root and be allowed to use another user
|
sudo -u "$USER" $@
|
||||||
sudo sudo -u "$USER" $@
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,13 +72,6 @@ ynh_clean_setup () {
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CHECK THE PATH
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Normalize the URL path syntax
|
|
||||||
path_url=$(ynh_normalize_url_path --path_url=$path_url)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD UPGRADE STEPS
|
# STANDARD UPGRADE STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue