fix working dir location

This commit is contained in:
Casper Chang
2021-01-04 16:38:27 +08:00
parent d7d973c280
commit 1f169db2e4
6 changed files with 46 additions and 9 deletions

15
cros_cp_utilities.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
#
# enter working directory
#
_working_dir_name=$1
_working_dir_name=${_working_dir_name::-1}
_mydir="$(pwd)"
_parentdir="$(dirname "$_mydir")"
_working_full_path="${_parentdir}/${_working_dir_name}"
cd ${_working_full_path}
echo "working path ${_working_full_path}"
cp -R ${SCRIPT_DIR}/local_manifests ${WORKING_DIR}/.repo
ls ${WORKING_DIR}/.repo
ls ${WORKING_DIR}/.repo/local_manifests