From d70bd9c7c8982f349f76c8318cfe938bc4350d02 Mon Sep 17 00:00:00 2001 From: Guillaume Derval Date: Sat, 26 Apr 2014 20:15:35 +0200 Subject: [PATCH] Fix linux distribution detection --- bootstrap-salt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 9ad96a3..83408f1 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -631,7 +631,7 @@ __sort_release_files() { done # Now, least important goes last in the min_prio list min_prio="lsb-release" - for entry in $max_prio; do + for entry in $min_prio; do if [ "x$(echo ${primary_release_files} | grep $entry)" != "x" ]; then primary_release_files=$(echo ${primary_release_files} | sed -e "s:\(.*\)\($entry\)\(.*\):\1 \3 \2:g") fi