Skip to content

Commit 41e00d5

Browse files
authored
Merge pull request #458 from DidierA/macos_echo
Fix echo -n on macOS
2 parents 536913e + 4d771fb commit 41e00d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

linPEAS/builder/linpeas_parts/linpeas_base/0_variables_base.sh

+3
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ if [ $? -ne 0 ] ; then
188188
fi
189189
fi
190190

191+
# on macOS the built-in echo does not support -n, use /bin/echo instead
192+
if [ "$MACPEAS" ] ; then alias echo=/bin/echo ; fi
193+
191194
print_title(){
192195
if [ "$DEBUG" ]; then
193196
END_T1_TIME=$(date +%s 2>/dev/null)

0 commit comments

Comments
 (0)