Skip to content

Commit 879cd65

Browse files
committed
Minor fixes in comments
1 parent 23daf65 commit 879cd65

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

scripts/reports/compilations/AllReports.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
# Runs all report scripts.
44
# It only consideres scripts in the "reports" directory (overridable with REPORTS_SCRIPT_DIR) one directory above this one.
55

6-
## Get this "reports/compilations" directory if not already set.
6+
## Get this "scripts/reports/compilations" directory if not already set.
77
# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
88
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
99
# This way non-standard tools like readlink aren't needed.
1010
REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}
11-
# The following solution should work in most shells but returns the (wrong) path of the caller when using "source" to call.
12-
#REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "$0")" && pwd -P)}
1311
echo "AllReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
1412

1513
REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:-$(dirname -- "${REPORT_COMPILATIONS_SCRIPT_DIR}")}

scripts/reports/compilations/CsvReports.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
# Runs all CSV report scripts (no Python and Chromium required).
44
# It only consideres scripts in the "reports" directory (overridable with REPORTS_SCRIPT_DIR) one directory above this one.
55

6-
## Get this "reports/compilations" directory if not already set.
6+
## Get this "scripts/reports/compilations" directory if not already set.
77
# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
88
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
99
# This way non-standard tools like readlink aren't needed.
1010
REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}
11-
# The following solution should work in most shells but returns the (wrong) path of the caller when using "source" to call.
12-
#REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "$0")" && pwd -P)}
1311
echo "CsvReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
1412

1513
REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:-$(dirname -- "${REPORT_COMPILATIONS_SCRIPT_DIR}")}

scripts/reports/compilations/JupyterReports.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
# For PDF generation chromium is required additionally.
77
# Therefore these reports will take longer and require more ressources than just plain database queries/procedures.
88

9-
## Get this "reports/compilations" directory if not already set.
9+
## Get this "scripts/reports/compilations" directory if not already set.
1010
# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
1111
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
1212
# This way non-standard tools like readlink aren't needed.
1313
REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}
14-
# The following solution should work in most shells but returns the (wrong) path of the caller when using "source" to call.
15-
#REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "$0")" && pwd -P)}
1614
echo "JupyterReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
1715

1816
REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:-$(dirname -- "${REPORT_COMPILATIONS_SCRIPT_DIR}")}

0 commit comments

Comments
 (0)