Lines 9-15
Link Here
|
9 |
# Test for an interactive shell. There is no need to set anything |
9 |
# Test for an interactive shell. There is no need to set anything |
10 |
# past this point for scp and rcp, and it's important to refrain from |
10 |
# past this point for scp and rcp, and it's important to refrain from |
11 |
# outputting anything in those cases. |
11 |
# outputting anything in those cases. |
12 |
if [[ $- != *i* ]] ; then |
12 |
if [ -z "$PS1" ]; then |
13 |
# Shell is non-interactive. Be done now! |
13 |
# Shell is non-interactive. Be done now! |
14 |
return |
14 |
return |
15 |
fi |
15 |
fi |