From cdef569d0555fdfbd3354ebc8a95fe404a381d08 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Tue, 9 Jan 2018 10:29:28 +0000 Subject: Only try to run layman if the command seems to exist --- portage-update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/portage-update.sh b/portage-update.sh index 023d46e..17c68b6 100755 --- a/portage-update.sh +++ b/portage-update.sh @@ -40,7 +40,10 @@ emerge --sync || exit 1 # Sync Layman repos echo 'layman -S' -layman -S || exit 1 +# Only try to run layman if the command seems to exist +if command -v layman > /dev/null; then + layman -S || exit 1 +fi # Check to see if there's any news, unless skipped if [ -z ${SKIP_NEWS+x} ] && [ $(eselect news count new) -ne "0" ]; then -- cgit v1.2.3