Merge pull request #7603 from lealem47/detect_cut

Fix cut detection in configure.ac
pull/7592/head
David Garske 2024-05-30 15:42:55 -07:00 committed by GitHub
commit bb57c1de94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -9633,7 +9633,7 @@ echo "" >> $OPTION_FILE
# note: cut requires an argument to exit with success.
if colrm >/dev/null 2>&1 </dev/null; then
TRIM="colrm 3"
elif cut --version >/dev/null 2>&1 </dev/null; then
elif echo "" | cut -c1 >/dev/null 2>&1 </dev/null; then
TRIM="cut -c1-2"
else
AC_MSG_ERROR([Could not find colrm or cut to make options file])