]> git.ipfire.org Git - ipfire-2.x.git/commit
Fix in pakfire functions.sh
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Fri, 10 Jun 2016 08:13:41 +0000 (10:13 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Jun 2016 08:33:26 +0000 (09:33 +0100)
commite6fd1f2d3876aae2c37051fce718f68712fdee4a
tree47fc262c8f2ae837eff3ff05934735a1c85679a3
parent77d989a66726dfe8282d00eec25f1cca80aca118
Fix in pakfire functions.sh

The if statement in line 89 and 99 are useless with the -e
conditional expression because it returns true if the path ist a
regular file or a directory.
So "/etc/init.d/ " returns true and "/etc/init.d/avahi" return also true,
but the statement should return only true if we have a regular file.
So -f if the right conditional expression, and we only try to execute
the init script if the path "/etc/init.d/${1}" points to a regular file.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/lib/functions.sh