[shell/cnf] check which shell before sourcing

This commit is contained in:
Felix Buehler 2019-08-15 00:03:45 +02:00
parent c3dcd8c03f
commit 02ebb592df

View file

@ -1,4 +1,11 @@
#!/bin/sh #!/bin/sh
# arch # arch
[ -r /usr/share/doc/pkgfile/command-not-found.bash ] && . /usr/share/doc/pkgfile/command-not-found.bash if [ "${BASH_VERSION}" ] && [ -r /usr/share/doc/pkgfile/command-not-found.bash ]; then
. /usr/share/doc/pkgfile/command-not-found.bash
fi
if [ "${ZSH_VERSION}" ] && [ -r /usr/share/doc/pkgfile/command-not-found.zsh ]; then
. /usr/share/doc/pkgfile/command-not-found.zsh
fi