fix: correct ls command to find kiauh_macros.cfg

This commit is contained in:
th33xitus
2021-11-11 14:15:00 +01:00
committed by GitHub
parent 36a8757cfd
commit 05a59e9261

View File

@@ -119,7 +119,7 @@ install_webui(){
fi
### ask user to install the recommended webinterface macros
if [[ ! -n $(ls $klipper_cfg_loc/kiauh_macros.cfg) ]] || [[ ! -n $(ls $klipper_cfg_loc/printer_*/kiauh_macros.cfg) ]]; then
if ! ls $klipper_cfg_loc/kiauh_macros.cfg 2>/dev/null 1>&2 || ! ls $klipper_cfg_loc/printer_*/kiauh_macros.cfg 2>/dev/null 1>&2; then
get_user_selection_kiauh_macros "$IF_NAME2"
fi
### create /etc/nginx/conf.d/upstreams.conf