
22 Dec
2020
22 Dec
'20
9:29 a.m.
On Mon, Dec 21, 2020 at 10:03:27AM +0800, Wu Fengguang wrote:
TO ALL
Best practice is to use realpath.
-. $LKP_SRC/lib/env.sh -. $LKP_SRC/sbin/set-env.sh +. lib/env.sh +. sbin/set-env.sh
SCRIPT_DIR=$(dirname $(realpath $0)) PROJECT_DIR=$(dirname $SCRIPT_DIR)
use command: git rev-parse --show-toplevel will directly get the top level path Thanks, Luan Shengde
$PROJECT_DIR/lib/env.sh $PROJECT_DIR/sbin/set-env.sh
Thanks, Fengguang