Skip to content

Commit ec676ba

Browse files
joselseguramatysek
authored andcommitted
Fix some shellcheck errors
1 parent a41a4ac commit ec676ba

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

docs/generate_class_diagram.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Copyright 2020 Red Hat, Inc
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2020-2026 Red Hat, Inc
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
46
# you may not use this file except in compliance with the License.
@@ -12,7 +14,7 @@
1214
# See the License for the specific language governing permissions and
1315
# limitations under the License.
1416

15-
pushd ..
17+
pushd .. || exit 1
1618
goplantuml -recursive . > class_diagram.uml
1719
java -jar ~/tools/plantuml.jar class_diagram.uml
1820
java -jar ~/tools/plantuml.jar -tsvg class_diagram.uml
@@ -21,4 +23,4 @@ mv class_diagram.uml docs/
2123
mv class_diagram.svg docs/images/
2224
mv class_diagram_.svg docs/images/
2325
mv class_diagram.png docs/images/
24-
popd
26+
popd || exit

tools/generate_class_diagram.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Copyright 2020, 2021 Red Hat, Inc
1+
#!/usr/bin/env bash
2+
# Copyright 2020-2026 Red Hat, Inc
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.
@@ -21,7 +22,7 @@
2122
# More info about `CLASSPATH` is available at
2223
# https://docs.oracle.com/javase/tutorial/essential/environment/paths.html
2324

24-
pushd ..
25+
pushd .. || exit 1
2526
goplantuml -recursive . > class_diagram.uml
2627
java -jar ~/tools/plantuml.jar class_diagram.uml
2728
java -jar ~/tools/plantuml.jar -tsvg class_diagram.uml
@@ -30,4 +31,4 @@ mv class_diagram_.svg class_diagram.svg
3031
mv class_diagram.uml docs/
3132
mv class_diagram.svg docs/
3233
mv class_diagram.png docs/
33-
popd
34+
popd || exit

0 commit comments

Comments
 (0)