Skip to content

Commit 644a5f8

Browse files
committed
update script
1 parent 018e9b1 commit 644a5f8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/2_synchronize.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ replace_in_qmd_files() {
7272
if [ "$count" -gt 1 ]; then
7373
# Use awk to comment out all but the first website: line
7474
awk "\$0 ~ /^website:/{if (++n > 1) sub(/^/, \"# \")}1" "$file" > "$file.tmp" && mv "$file.tmp" "$file"
75-
echo "File $file: $count 'website:' lines, all but the first commented."
7675
fi
7776
done
7877
' bash {} +
@@ -154,7 +153,7 @@ main() {
154153
if [ "$branch_created" = false ]; then
155154
git pull origin fusion_site_ssplab
156155
git checkout -b auto_fetch
157-
# git push -u origin auto_fetch
156+
git push -u origin auto_fetch
158157
branch_created=true
159158
fi
160159

@@ -172,7 +171,7 @@ main() {
172171
# Commit the changes
173172
git add "$path_to_folder_to_synchronize_to" "$json_file"
174173
git commit -m "Update $path_to_folder_to_synchronize_to based on commit $new_commit_sha made to $path_to_folder_to_synchronize_from"
175-
# git push
174+
git push
176175
else
177176
echo "No new commit since ${last_commit_sha:0:6} found for $path_to_folder_to_synchronize_from"
178177
fi

0 commit comments

Comments
 (0)