diff --git a/docs/generic/globalVariables.md b/docs/generic/globalVariables.md index 115bb1de9..223463550 100644 --- a/docs/generic/globalVariables.md +++ b/docs/generic/globalVariables.md @@ -2,7 +2,7 @@ ```bash # -# $ eval "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/docs/generic/globalVariables.md | grep -v \`\`\`)" +# $ eval "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/docs/generic/globalVariables.md | awk '/^# /dev/null diff --git a/tools/misp-backup/misp-backup.sh b/tools/misp-backup/misp-backup.sh index 5a535217e..8370dc75c 100755 --- a/tools/misp-backup/misp-backup.sh +++ b/tools/misp-backup/misp-backup.sh @@ -31,7 +31,7 @@ ## # This makes use of the standard variables used by the installer -eval "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/docs/generic/globalVariables.md | grep -v \`\`\`)" +eval "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/docs/generic/globalVariables.md | awk '/^# /dev/null 2>&1 # Leave empty for NO debug messages, if run with set -x or bash -x it will enable DEBUG by default diff --git a/tools/misp-backup/misp-restore.sh b/tools/misp-backup/misp-restore.sh index 7d02bf0e5..bc61adc28 100755 --- a/tools/misp-backup/misp-restore.sh +++ b/tools/misp-backup/misp-restore.sh @@ -28,7 +28,7 @@ # TODO: Check db user exists. # This makes use of the standard variables used by the installer -eval "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/docs/generic/globalVariables.md | grep -v \`\`\`)" +eval "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/docs/generic/globalVariables.md | awk '/^# /dev/null 2>&1 # Leave empty for NO debug messages, if run with set -x or bash -x it will enable DEBUG by default