Skip to content

Commit

Permalink
grep without fail
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed May 10, 2024
1 parent 7c9a9ce commit 060bfca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo detected_os = $detected_os
BINARY_OS=${BINARY_OS:-}
BINARY_ARCH=${BINARY_ARCH:-}
FILE_EXT=${FILE_EXT:-}
ALPINE=$(cat /etc/os-release | grep -i alpine &>/dev/null && echo true || false)
ALPINE=$(grep -i alpine /etc/os-release &>/dev/null && echo true || echo false)
if [ "$BINARY_OS" == "" ] || [ "$BINARY_ARCH" == "" ] ; then
case ${detected_os} in
'Darwin arm64')
Expand Down
2 changes: 1 addition & 1 deletion script/unpack-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo detected_os = $detected_os
BINARY_OS=${BINARY_OS:-}
BINARY_ARCH=${BINARY_ARCH:-}
FILE_EXT=${FILE_EXT:-}
ALPINE=$(cat /etc/os-release | grep -i alpine &>/dev/null && echo true || false)
ALPINE=$(grep -i alpine /etc/os-release &>/dev/null && echo true || echo false)

if [ "$BINARY_OS" == "" ] || [ "$BINARY_ARCH" == "" ] ; then
case ${detected_os} in
Expand Down

0 comments on commit 060bfca

Please sign in to comment.