From be8924184fbc709e98353bf8c9dbb76491dcc783 Mon Sep 17 00:00:00 2001 From: Florian du Garage Num Date: Fri, 15 Dec 2023 16:39:09 +0100 Subject: [PATCH] make scripts executable --- bin/compile | 5 ++++- bin/detect | 0 bin/release | 0 3 files changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 bin/compile mode change 100644 => 100755 bin/detect mode change 100644 => 100755 bin/release diff --git a/bin/compile b/bin/compile old mode 100644 new mode 100755 index ede2da0..8d88cf5 --- a/bin/compile +++ b/bin/compile @@ -2,8 +2,11 @@ BUILD_DIR=$1 -HUGO_VERSION=$(grep 'hugoVersion' $BUILD_DIR/config.yaml | cut -d '"' -f 2) +HUGO_VERSION=$(grep 'hugoVersion' $BUILD_DIR/config.toml | cut -d '"' -f 2) +if [ -z "$HUGO_VERSION" ]; then + HUGO_VERSION=$(grep 'hugoVersion' $BUILD_DIR/config.yaml | cut -d '"' -f 2) +fi if [ -z "$HUGO_VERSION" ]; then HUGO_VERSION="0.111.2" # default version fi diff --git a/bin/detect b/bin/detect old mode 100644 new mode 100755 diff --git a/bin/release b/bin/release old mode 100644 new mode 100755