When reviewing a shell script you have found, you see this:
if [[ -x /etc/zoid ]]; then. /etc/zoidelif [[ -x $HOME/.zoid ]]; then. $HOME/.zoidfi
Which of the following is true?
a. The script checks if the file /etc/zoid is executable, and if so, sources it. If not, it checks if the file $HOME/.zoid is executable, and if so, sources it.
b. The script checks if the file /etc/zoid is executable, and if so, sources it. If not, it checks if the file $HOME/.zoid is executable, and if so, executes it.
c. The script checks if the file /etc/zoid exists, and if so, sources it. If not, it checks if the file $HOME/.zoid exists, and if so, sources it.
d. The script checks if the file /etc/zoid exists, and if so, sources it. If not, it checks if the file $HOME/.zoid exists, and if so, executes it.

Q&A Education