1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-09 21:39:17 -04:00
ports/emulators/playonbsd/files/patch-lib_variables
Stefan Eßer 7e79a1267e Fix problem with desktop shortcuts reported by iluxa (at) ex.ua.
Upgrade to latest stable version 4.2.10 on that occasion.

PR:		209418
Reported by:	iluxa (at) ex.ua
Approved by:	antoine (mentor, implicit)
2016-05-10 17:05:33 +00:00

16 lines
465 B
Text

--- lib/variables.orig 2016-01-03 22:16:17 UTC
+++ lib/variables
@@ -69,8 +69,11 @@ else
eval_gettext() { printf "$@"; }
fi
-which shasum > /dev/null 2> /dev/null || shasum () { sha1sum "$@"; }
-
+which shasum > /dev/null 2> /dev/null || \
+ which sha1sum > /dev/null 2> /dev/null && \
+ shasum () { sha1sum "$@"; } || \
+ shasum () { sha1 "$@"; }
+which md5sum > /dev/null 2> /dev/null || md5sum () { md5 "$@"; }
if [ "$POL_OS" == "Linux" ]
then