Commit f25e0002 authored by mara's avatar mara

fix cp new package

parent e2aad571
......@@ -34,7 +34,9 @@ prepare_work_dir() {
# if new packages copy all
if [[ -e ${_BUILD}/$1/.new ]]; then
cp -a $(ls | ${_BUILD}/$1/ | grep -vP '^work$' ${_BUILD}/$1/${_WORK_DIR}/
pushd ${_BUILD}/$1/ 2>&1>/dev/null
cp -a $(ls | grep -vP '^work$') ${_BUILD}/$1/${_WORK_DIR}/
popd 2>&1>/dev/null
return 1
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment