diff --git a/cros_cp_localmanifest.sh b/cros_cp_localmanifest.sh index 6b66fe9..0c49e60 100755 --- a/cros_cp_localmanifest.sh +++ b/cros_cp_localmanifest.sh @@ -20,9 +20,14 @@ _mydir="$(pwd)" if [ -z "$2" ] then + + rm -fr ${_working_full_path}/.repo/local_manifests + echo "INFO: rm -fr ${_working_full_path}/.repo/local_manifests" echo "INFO: copy local manifests, No branch specified" cp -R ${SCRIPT_DIR}/local_manifests ${_working_full_path}/.repo/ else + rm -fr ${_working_full_path}/.repo/local_manifests + echo "INFO: rm -fr ${_working_full_path}/.repo/local_manifests" echo "INFO: copy $2 local manifests" local_manifest_dir="$2_local_manifests" cp -R ${SCRIPT_DIR}/${local_manifest_dir} ${_working_full_path}/.repo