Skip to content

Commit

Permalink
refactor: -e to type (Qithub-BOT#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
KEINOS committed Jun 3, 2021
1 parent 0c73489 commit c69a160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/issues/issue25_test.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#shellcheck shell=bash
#shellcheck shell=sh

# md5s は md5sum/md5 のラッパー関数です.
md5s() {
if [ -e "$(which md5sum)" ]; then
if type md5sum 1>/dev/null 2>/dev/null; then
echo "$1" | md5sum | awk '{ print $1 }'
return $?
fi

if [ -e "$(which md5)" ]; then
if type md5 1>/dev/null 2>/dev/null; then
md5 -q -s "$1"
return $?
fi
Expand Down

0 comments on commit c69a160

Please sign in to comment.