Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
unix
FI printers over Samba on Linux
Commits
85b46acf
Commit
85b46acf
authored
Nov 04, 2021
by
Martin Klimeš
Browse files
add return code check for system
parent
e088913f
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.pl
View file @
85b46acf
...
@@ -176,6 +176,9 @@ sub install_printer {
...
@@ -176,6 +176,9 @@ sub install_printer {
}
}
system
(
$command
);
system
(
$command
);
if
(
$?
!=
0
)
{
die
"
[ERROR] Could not install the printer via lpadmin
";
}
return
;
return
;
}
}
...
@@ -188,6 +191,9 @@ sub update_ppd {
...
@@ -188,6 +191,9 @@ sub update_ppd {
-P "ppds/${printer_name}.ppd" )
;
-P "ppds/${printer_name}.ppd" )
;
system
(
$command
);
system
(
$command
);
if
(
$?
!=
0
)
{
die
"
[ERROR] Could not update the ppd via lpadmin
";
}
return
;
return
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment