cd: Fix location
All checks were successful
Woodburn Main/woodburn/pipeline/head This commit looks good

This commit is contained in:
Nathan Woodburn 2023-07-13 17:30:29 +10:00
parent 2eba52c1e0
commit f6dad3985d
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

2
Jenkinsfile vendored
View File

@ -4,7 +4,7 @@ pipeline {
stages { stages {
stage('Files') { stage('Files') {
steps { steps {
sh returnStdout: true, script: '''for file in "$directory"/*.html; do sh returnStdout: true, script: '''for file in "."/*.html; do
if [[ -f "$file" ]]; then if [[ -f "$file" ]]; then
sed -i \'s/\\(<link rel="canonical" href="\\)\\(.*\\)\\(.html" \\)/\\1\\2\\3/\' "$file" sed -i \'s/\\(<link rel="canonical" href="\\)\\(.*\\)\\(.html" \\)/\\1\\2\\3/\' "$file"
echo "Modified: $file" echo "Modified: $file"