comparison rc/bash @ 242:ebfa844d2ef8

[bash] Also ensures interactive terminal.
author Edho Arief <edho@myconan.net>
date Thu, 03 Nov 2011 15:43:17 +0700
parents 5dcbf6ab0109
children 3d57990fe9d1
comparison
equal deleted inserted replaced
241:443e0004a708 242:ebfa844d2ef8
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2
3 case "${-}" in
4 *i*) ;;
5 *) return;;
6 esac
2 7
3 if [ "${ECOS_BASH_LOADED}" != "yes" ]; then 8 if [ "${ECOS_BASH_LOADED}" != "yes" ]; then
4 ECOS_BASH_LOADED="yes" 9 ECOS_BASH_LOADED="yes"
5 else 10 else
6 return 11 return