Skip to content

Commit

Permalink
chore: format shell with shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Bambooin committed May 3, 2024
1 parent b5987ef commit 60f73f6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
10 changes: 5 additions & 5 deletions rimerc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ squirrel)
trime | weasel)
case $1 in
weasel)
RIME_CONFIG_PATH=%AppData%\Rime
;;
RIME_CONFIG_PATH=%AppData%\Rime
;;

trime)
RIME_CONFIG_PATH=/sdcard/rime
;;
RIME_CONFIG_PATH=/sdcard/rime
;;
esac

# package flavor
Expand Down
3 changes: 1 addition & 2 deletions script/archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ version=$(git describe --tags --abbrev=0)

pushd ${releasePath}

for flavor in ${flavors[*]}
do
for flavor in ${flavors[*]}; do
zip -r rimerc-${flavor}-${version}.zip ${flavor} ${licence} -x "*/.*"
done

Expand Down
12 changes: 5 additions & 7 deletions script/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ schemas=(common easy_en luna_pinyin)
mkdir -p ${releasePath}

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

for flavor in ${flavors[*]}
do
cp -rfH ${flavor} ${releasePath}
for schema in ${schemas[*]}
do
cp -rf ${schema}/* ${releasePath}/${flavor}
for flavor in ${flavors[*]}; do
cp -a ${flavor} ${releasePath}
for schema in ${schemas[*]}; do
cp -a ${schema}/* ${releasePath}/${flavor}
done
done
2 changes: 1 addition & 1 deletion script/sha256sum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shasum=rimerc.sha256
pushd ${releasePath}

# generate shasum
sha256sum *.zip > ${shasum}
sha256sum *.zip >${shasum}

# check shasum
sha256sum -c ${shasum}
Expand Down

0 comments on commit 60f73f6

Please sign in to comment.