From 8be8b70667ded12ee6f84f3668f9e2431fab959b Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 4 Jan 2024 15:35:18 +0200 Subject: [PATCH] revert script --- start.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/start.sh b/start.sh index 4425f0dd4..50dd0e146 100755 --- a/start.sh +++ b/start.sh @@ -6,17 +6,17 @@ if command -v tailwindcss &> /dev/null; then else # checks OS and architecture for correct release echo "Installing & building tailwind..." - + ASSET="tailwindcss" - + if [[ "$OSTYPE" == "linux-gnu"* ]]; then ASSET="$ASSET-linux" - elif [[ "$OSTYPE" == "darwin"* ]]; then + elif [[ "$OSTYPE" == "darwin"* ]]; then ASSET="$ASSET-macos" fi if [[ "$(uname -m)" == "x86_64"* ]]; then ASSET="$ASSET-x64" - elif [[ "$(uname -m)" == "arm64"* ]]; then + elif [[ "$(uname -m)" == "arm64"* ]]; then ASSET="$ASSET-arm64" fi pushd /tmp @@ -32,7 +32,8 @@ source env.sh # initialized and configures tailwind if not configured if [ ! -f "tailwind.config.js" ] then - @@ -37,23 +12,13 @@ then + ./tailwindcss init + sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js fi # compiles tailwind css & launches locally