-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathln_test.sh
More file actions
executable file
·22 lines (18 loc) · 657 Bytes
/
ln_test.sh
File metadata and controls
executable file
·22 lines (18 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
__ln_test_main() {
eval "$(__sh_color_definitions)"
eval "$(__sh_os_definitions)"
local SH_SOURCE_DIR=$(__get_sh_scripts_dir)
local SH_SOURCE_FILE=$(__get_sh_scripts_file)
# . $SH_SOURCE_DIR/direct_test.sh
local TEMFILE
TEMPFILE=${TMPDIR:-/tmp}/$RANDOM
if ln -s $SH_SOURCE_DIR/$SH_SOURCE_FILE $TEMPFILE >/dev/null 2>&1; then
rm $TEMPFILE
echo -e $COLOR_GREEN'Success'$COLOR_NONE
else
echo -e $COLOR_RED'Fail'$COLOR_NONE
echo -e $COLOR_YELLOW'Note:'$COLOR_NONE' Run Msys as administrator to create file links under Msys.'$COLOR_NONE
fi
}
__ln_test_main "$@"
unset -f __ln_test_main