Skip to content

Commit 631331c

Browse files
fix: quote variables in if-else condition
Addresses commoncrawl/wac2025-webgraph-workshop#1.
1 parent eb6a428 commit 631331c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script/webgraph_ranking/graph_explore_download_webgraph.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ set -e # stop on errors
100100
download_files "$NAME" graph properties stats
101101
download_files "$NAME-t" graph properties
102102

103-
if [ $GRAPH_AGGR_LEVEL == "domain" ]; then
103+
if [ "$GRAPH_AGGR_LEVEL" == "domain" ]; then
104104
download_files "$NAME-vertices" txt.gz
105105
else
106106
download_files "$NAME-vertices" paths.gz
@@ -118,7 +118,7 @@ list_webgraph_files $NAME graph properties stats
118118
echo "- webgraph (transpose)"
119119
list_webgraph_files $NAME-t graph properties
120120
echo "- webgraph vertices"
121-
if [ $GRAPH_AGGR_LEVEL == "domain" ]; then
121+
if [ "$GRAPH_AGGR_LEVEL" == "domain" ]; then
122122
list_webgraph_files $NAME-vertices txt.gz
123123
else
124124
list_webgraph_files vertices "*.txt.gz"

0 commit comments

Comments
 (0)