From 3d6d1ddb531797e8360fb1aea7ae5944ea8d58b8 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Thu, 1 Apr 2021 15:42:04 +0900 Subject: [PATCH] fix: [tools] Fixed misp-backup --- docs/generic/globalVariables.md | 2 +- tools/misp-backup/misp-backup.sh | 2 +- tools/misp-backup/misp-restore.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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