-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9003372
commit ad59b9c
Showing
4 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
filter_electron_security_warnings() { | ||
while read -r line; do | ||
echo "$line" | grep -v "is deprecated and will be changing" | ||
done | ||
} | ||
|
||
if [ "${ELECTRON_DISABLE_SECURITY_WARNINGS}" == "true" ]; then | ||
"$DRAWIO_DESKTOP_EXECUTABLE_PATH" --drawio-desktop-headless "$@" 2> >(filter_electron_security_warnings) | ||
"$DRAWIO_DESKTOP_EXECUTABLE_PATH" --drawio-desktop-headless "$@" 3>&1 >&2 2>&3 3>&- | | ||
grep -v "Failed to connect to socket" | | ||
grep -v "Could not parse server address" | | ||
grep -v "Floss manager not present" | | ||
grep -v "Exiting GPU process" | | ||
grep -v "called with multiple threads" | | ||
grep -v "extension not supported" | | ||
grep -v "Failed to send GpuControl.CreateCommandBuffer" | ||
else | ||
"$DRAWIO_DESKTOP_EXECUTABLE_PATH" --drawio-desktop-headless "$@" 2>&1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[1;31merror:[0m The following required arguments were not provided: | ||
[1;31m--on-changes[0m | ||
error: The following required arguments were not provided: | ||
--on-changes | ||
|
||
USAGE: | ||
drawio-exporter --border <border> --quality <quality> --drawio-desktop-headless --output <folder> --format <format> --git-ref <reference> --on-changes | ||
|
||
For more information try [32m--help[0m | ||
For more information try --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[1;31merror:[0m Found argument '[33m--wrong-argument[0m' which wasn't expected, or isn't valid in this context | ||
error: Found argument '--wrong-argument' which wasn't expected, or isn't valid in this context | ||
|
||
USAGE: | ||
drawio-exporter --drawio-desktop-headless | ||
|
||
For more information try [32m--help[0m | ||
For more information try --help |