fix working dir location
This commit is contained in:
15
cros_cp_utilities.sh
Executable file
15
cros_cp_utilities.sh
Executable 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
|
||||
Reference in New Issue
Block a user