show error message if warning is ignored or no printer connection was found. extend the function to search by path as well if search by id is not successfull

This commit is contained in:
th33xitus committed 2020-08-12 18:02:31 +02:00
1 parent 66e9069687
commit a06b06eb46
3 files changed
+36 -18

No files matched your search

+3 -3
View File
@@ -357,13 +357,13 @@ advanced_menu(){
5)
clear
print_header
get_usb_id
get_printer_usb
print_msg && clear_msg
advanced_ui;;
6)
clear
print_header
get_usb_id && write_printer_id
get_printer_usb && write_printer_usb
print_msg && clear_msg
advanced_ui;;
7)
@@ -510,7 +510,7 @@ backup_menu(){
### sourcing all additional scripts
SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
for script in ${SRCDIR}/kiauh/scripts/*; do . $script; done
for script in "${SRCDIR}/kiauh/scripts/"*; do . $script; done
check_euid
kiauh_status