You've already forked pedini.dev
fixed git url parsing
This commit is contained in:
@@ -19,13 +19,13 @@ fi
|
||||
|
||||
# Get project commit id and URL
|
||||
COMMIT_ID=$(git log HEAD --oneline | awk '{print $1}' | head -n1)
|
||||
COMMIT_URL="$(git remote get-url origin | sed 's/\.git$//g;s/:/\//;s/git@/https:\/\//')/commit/${COMMIT_ID}"
|
||||
COMMIT_URL="$(git remote get-url origin | sed 's/\.git$//')/commit/${COMMIT_ID}"
|
||||
|
||||
# Get the theme used and its commit id and URL
|
||||
THEME=$(cat hugo.yaml | grep "theme:" | awk '{print $2}' | sed 's/"//g')
|
||||
pushd themes/${THEME} &>/dev/null
|
||||
THEME_COMMIT=$(git log HEAD --oneline | awk '{print $1}' | head -n1)
|
||||
THEME_URL="$(git remote get-url origin | sed 's/\.git$//g')/commit/${THEME_COMMIT}"
|
||||
THEME_URL="$(git remote get-url origin | sed 's/\.git$//')/commit/${THEME_COMMIT}"
|
||||
popd &>/dev/null
|
||||
|
||||
# Create version tag (if provided)
|
||||
|
||||
Reference in New Issue
Block a user