From 40519182cc77f59736505a8ad612559cfa7f5406 Mon Sep 17 00:00:00 2001 From: My Spaghetti <31696646+myspaghetti@users.noreply.github.com> Date: Mon, 17 May 2021 04:27:05 +0300 Subject: [PATCH] check that xxd sees /dev/urandom --- macos-guest-virtualbox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index e5d7d1b..6664321 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -230,7 +230,7 @@ if [[ -z "$(gzip --help 2>/dev/null)" || fi # check that xxd supports endianness -e flag -if [[ -z "$(echo -n "xxd" | xxd -e -p 2>/dev/null)" ]]; then +if [[ -z "$(xxd -e -p -l 16 /dev/urandom 2>/dev/null)" ]]; then echo "Please make sure a version of xxd which supports the -e option is installed." echo -e "The -e option should be listed when executing ${low_contrast_color}xxd --help${default_color}" echo "The package vim-common-8 provides a compatible version on most modern distros."