diff options
author | 2020-04-23 14:40:28 +0200 | |
---|---|---|
committer | 2020-04-23 14:40:28 +0200 | |
commit | e757ab1145cc4c6ce7b2c2005220ae59792e218e (patch) | |
tree | 78de80c0565f7164e30d7c06147fe3b945c84d08 /modules | |
parent | Update version to 1.4.16. (diff) | |
download | eselect-e757ab1145cc4c6ce7b2c2005220ae59792e218e.tar.gz eselect-e757ab1145cc4c6ce7b2c2005220ae59792e218e.tar.bz2 eselect-e757ab1145cc4c6ce7b2c2005220ae59792e218e.zip |
rc.eselect: Test for regular file.
* modules/rc.eselect (is_script): Test whether the script is a
regular file, bug 718920.
Bug: https://bugs.gentoo.org/718920
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rc.eselect | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rc.eselect b/modules/rc.eselect index 4a3c16d..a606cfa 100644 --- a/modules/rc.eselect +++ b/modules/rc.eselect @@ -35,6 +35,7 @@ is_script() { [[ -n ${file} \ && ${file%%.sh} = "${file}" \ && ${file%%\~} = "${file}" \ + && -f ${file} \ && -x ${file} ]] \ && read line <"${file}" \ && [[ ${line} =~ ^#!.*(runscript|openrc-run) ]] |