Skip to content

Commit

Permalink
ci: fix cp -Rr can't specifed together error on Mac OS (#15)
Browse files Browse the repository at this point in the history
error details: 
"cp: the -R and -r options may not be specified together"
  • Loading branch information
faywong authored May 3, 2024
1 parent 2764637 commit 5099648
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ schemas=(common easy_en luna_pinyin)
mkdir -p ${releasePath}

licence='Copyleft.txt LICENSE README.md'
cp -r ${licence} ${releasePath}
cp -rf ${licence} ${releasePath}

for flavor in ${flavors[*]}
do
cp -arH ${flavor} ${releasePath}
cp -rfH ${flavor} ${releasePath}
for schema in ${schemas[*]}
do
cp -ar ${schema}/* ${releasePath}/${flavor}
cp -rf ${schema}/* ${releasePath}/${flavor}
done
done

0 comments on commit 5099648

Please # to comment.