diff options
author | Colin Guthrie <colin@mageia.org> | 2014-10-27 17:58:07 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-10-27 17:58:07 +0000 |
commit | 639520d01453dad653ba4095265a49097560ce6a (patch) | |
tree | a1c7fa9355f5e3cc86ef0918c511e38a9654aa07 /del-service | |
parent | 48da69a11f9282311a22cf8efbe0257539f67717 (diff) | |
download | rpm-helper-639520d01453dad653ba4095265a49097560ce6a.tar rpm-helper-639520d01453dad653ba4095265a49097560ce6a.tar.gz rpm-helper-639520d01453dad653ba4095265a49097560ce6a.tar.bz2 rpm-helper-639520d01453dad653ba4095265a49097560ce6a.tar.xz rpm-helper-639520d01453dad653ba4095265a49097560ce6a.zip |
Don't leak failure exit code from del-service when no sysvinit script exists.
Diffstat (limited to 'del-service')
-rwxr-xr-x | del-service | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/del-service b/del-service index 2d28963..388add9 100755 --- a/del-service +++ b/del-service @@ -94,7 +94,9 @@ if [ $num = 0 ]; then fi /bin/systemctl --no-reload --quiet disable $units >/dev/null 2>&1 - [ -n "$srv" -a -f /etc/rc.d/init.d/$srv ] && /sbin/chkconfig --del $srv + if [ -n "$srv" -a -f /etc/rc.d/init.d/$srv ]; then + /sbin/chkconfig --del $srv + fi fi # del-service ends here |