diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index f72501dfd9..cf75cefaf5 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -71,7 +71,7 @@ jobs: - name: Build VAST Doc run: cmake --build --preset ninja-rel --target vast-doc - - name: Build Website + - name: Build Pages run: | sh ./www/setup.sh _site ./builds/ninja-multi-default/ diff --git a/www/setup.sh b/www/setup.sh index cfdb3c4685..af0dba4dff 100644 --- a/www/setup.sh +++ b/www/setup.sh @@ -1,17 +1,8 @@ #!/usr/bin/env bash -vast_repo="git@github.com:trailofbits/vast.git" - # Check if the current directory is a Git repository -if [ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1; then - # Check if it's the VAST repository - actual_repo=$(git config --get remote.origin.url) - if [ "$actual_repo" != "$vast_repo" ]; then - echo "Error: Script must be run from the root of VAST repository." - exit 1 - fi -else - echo "Error: Script must be run from the root of VAST repository." +if !( [ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1 ); then + echo "Error: Script must be run from the root of repository." exit 1 fi