mirror of
https://github.com/monero-project/monero-site.git
synced 2025-02-25 20:35:27 +02:00
Fix indices used to check CLI and GUI file names in workflow
This commit is contained in:
parent
a71a1941c8
commit
0a47adbcbf
10
.github/workflows/hashes.yaml
vendored
10
.github/workflows/hashes.yaml
vendored
@ -46,18 +46,18 @@ jobs:
|
|||||||
filename="${the_line[$length]}"
|
filename="${the_line[$length]}"
|
||||||
echo "${filename}"
|
echo "${filename}"
|
||||||
}
|
}
|
||||||
# expects cli files between lines 2-13 and gui 14-18 (comments do not count, 1st line = 0)
|
# expects cli files between lines 2-14 and gui 15-19 (comments do not count, 1st line = 0)
|
||||||
# to add a new file to the cli, $num must be -gt 1 and -lt 15.
|
# to add a new file to the cli, $num must be -gt 1 and -lt 16.
|
||||||
# gui $num is now -gt 14 and -lt 20 (new line has been added above)
|
# gui $num is now -gt 15 and -lt 21 (new line has been added above)
|
||||||
# a new gui file will only increase the -lt number by 1
|
# a new gui file will only increase the -lt number by 1
|
||||||
# changes to extensions / new files must be reflected in the cli_files / gui_files lists below
|
# changes to extensions / new files must be reflected in the cli_files / gui_files lists below
|
||||||
num=0
|
num=0
|
||||||
for line in "${lines[@]}"; do
|
for line in "${lines[@]}"; do
|
||||||
if [ $num -gt 1 ] && [ $num -lt 14 ] ; then
|
if [ $num -gt 1 ] && [ $num -lt 15 ] ; then
|
||||||
#CLI
|
#CLI
|
||||||
filename=$(get_filename "${line}")
|
filename=$(get_filename "${line}")
|
||||||
filenames_cli+=("${filename}")
|
filenames_cli+=("${filename}")
|
||||||
elif [ $num -gt 13 ] && [ $num -lt 21 ] ; then
|
elif [ $num -gt 14 ] && [ $num -lt 21 ] ; then
|
||||||
#GUI
|
#GUI
|
||||||
filename=$(get_filename "${line}")
|
filename=$(get_filename "${line}")
|
||||||
filenames_gui+=("${filename}")
|
filenames_gui+=("${filename}")
|
||||||
|
Loading…
Reference in New Issue
Block a user