Skip to content

Commit

Permalink
Squash merge PR #5 Fix: Error when bin dir was set in $PATH env
Browse files Browse the repository at this point in the history
* Fix the check command (remove the './') for a more common environment (#5)
  • Loading branch information
Yuki Shimada authored May 24, 2021
1 parent 7736ae7 commit 7ae25da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/check
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ echo "OK"
# サンプル・ファイルの暗号化
# --------------------------
echo -n "サンプル・ファイルを暗号化しています ... "
RESULT=`./enc ${USERNAME} ${PATHFILE} 2>$1`
RESULT=`enc ${USERNAME} ${PATHFILE} 2>$1`

if [[ $? != 0 ]]; then
echo "NG:サンプル・ファイルの暗号化に失敗しました。"
Expand All @@ -91,7 +91,7 @@ echo "OK"
# サンプル・ファイルの復号
# ------------------------
echo -n "暗号ファイルを復号しています ... "
RESULT=`./dec ${SECRETKEY} ${PATHFILE}.enc ${PATHFILE}.dec 2>$1`
RESULT=`dec ${SECRETKEY} ${PATHFILE}.enc ${PATHFILE}.dec 2>$1`

if [[ $? != 0 ]]; then
echo "NG:暗号ファイルの復号中にエラーが発生しました。"
Expand Down

0 comments on commit 7ae25da

Please sign in to comment.