File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 17
17
# @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18
18
#
19
19
# ###############################################################################
20
- LIB=${0/% cake/ }
20
+ LIB=$( cd -P -- " $( dirname -- " $0 " ) " && pwd -P) && LIB=$LIB /$( basename -- " $0 " )
21
+
22
+ while [ -h $LIB ]; do
23
+ DIR=$( dirname -- " $LIB " )
24
+ SYM=$( readlink $LIB )
25
+ LIB=$( cd $DIR && cd $( dirname -- " $SYM " ) && pwd) /$( basename -- " $SYM " )
26
+ done
27
+
28
+ LIB=$( dirname -- " $LIB " ) /
21
29
APP=` pwd`
22
30
23
31
exec php -q ${LIB} cake.php -working " ${APP} " " $@ "
Original file line number Diff line number Diff line change 17
17
# @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18
18
#
19
19
# ###############################################################################
20
- LIB=${0/% cake/ }
20
+ LIB=$( cd -P -- " $( dirname -- " $0 " ) " && pwd -P) && LIB=$LIB /$( basename -- " $0 " )
21
+
22
+ while [ -h $LIB ]; do
23
+ DIR=$( dirname -- " $LIB " )
24
+ SYM=$( readlink $LIB )
25
+ LIB=$( cd $DIR && cd $( dirname -- " $SYM " ) && pwd) /$( basename -- " $SYM " )
26
+ done
27
+
28
+ LIB=$( dirname -- " $LIB " ) /
21
29
APP=` pwd`
22
30
23
31
exec php -q ${LIB} cake.php -working " ${APP} " " $@ "
24
32
25
- exit ;
33
+ exit ;
Original file line number Diff line number Diff line change 17
17
# @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18
18
#
19
19
# ###############################################################################
20
- LIB=${0/% cake/ }
20
+ LIB=$( cd -P -- " $( dirname -- " $0 " ) " && pwd -P) && LIB=$LIB /$( basename -- " $0 " )
21
+
22
+ while [ -h $LIB ]; do
23
+ DIR=$( dirname -- " $LIB " )
24
+ SYM=$( readlink $LIB )
25
+ LIB=$( cd $DIR && cd $( dirname -- " $SYM " ) && pwd) /$( basename -- " $SYM " )
26
+ done
27
+
28
+ LIB=$( dirname -- " $LIB " ) /
21
29
APP=` pwd`
22
30
23
31
exec php -q ${LIB} cake.php -working " ${APP} " " $@ "
You can’t perform that action at this time.
0 commit comments