From 605fc21e3d7c4085bf832556ff90ea8bb8210acc Mon Sep 17 00:00:00 2001 From: PaterSiul Date: Fri, 21 Apr 2017 19:31:37 +0200 Subject: [PATCH] Fix Archlinux detection Archlinux doesn't seem to use DISTRIB_ID in os-release anymore. https://www.freedesktop.org/software/systemd/man/os-release.html lists no option as mandatory and ID seems like it could be stable. --- build_win2008.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_win2008.sh b/build_win2008.sh index f29308a..1441dc2 100755 --- a/build_win2008.sh +++ b/build_win2008.sh @@ -42,7 +42,7 @@ if [ $(uname) = "Darwin" ]; then vagrant_exact_match=false elif [ $(uname) = "Linux" ]; then vagrant_exact_match=false - if cat /etc/*-release | grep -q 'DISTRIB_ID=Arch'; then + if (cat /etc/*-release | grep -q 'DISTRIB_ID=Arch')|(cat /etc/os-release | grep -q 'ID=arch'); then packer_bin="packer-io" fi fi