File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
set -eEuo pipefail
14
14
15
15
PROG=" $( basename " $0 " ) "
16
- PROG_PATH=" $( readlink -f " $0 " ) "
16
+ PROG_PATH=" $( readlink -f " ${BASH_SOURCE[0]} " ) "
17
17
PROG_DIR=" $( dirname " $PROG_PATH " ) "
18
18
19
19
# ###############################################################################
Original file line number Diff line number Diff line change 10
10
# @author Jerry Lee (oldratlee at gmail dot com)
11
11
set -eEuo pipefail
12
12
13
+ # BASE="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
13
14
BASE=" $( dirname " $0 " ) "
14
15
source " $BASE /xpl" " $@ "
Original file line number Diff line number Diff line change 5
5
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-console-text-color-themessh
6
6
# @author Jerry Lee (oldratlee at gmail dot com)
7
7
8
- readonly _ctct_PROG=" $( basename " $( readlink -f " $0 " ) " ) "
8
+ readonly _ctct_PROG=" $( basename " $( readlink -f " ${BASH_SOURCE[0]} " ) " ) "
9
9
[ " $_ctct_PROG " == ' console-text-color-themes.sh' ] && readonly _ctct_is_direct_run=true
10
10
11
11
readonly _ctct_ec=$' \033 ' # escape char
You can’t perform that action at this time.
0 commit comments