From bb3b9341413593b74330597032949d81e3df6b56 Mon Sep 17 00:00:00 2001 From: luciano_bestia Date: Wed, 27 Mar 2024 13:00:04 -0500 Subject: [PATCH] 2024-03-27 --- automation_tasks_rs/src/main.rs | 2 +- .../sign.sh | 2 +- .../cargo_crev_web/cargo_crev_web_publish.sh | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/automation_tasks_rs/src/main.rs b/automation_tasks_rs/src/main.rs index a016b83..3069ba3 100644 --- a/automation_tasks_rs/src/main.rs +++ b/automation_tasks_rs/src/main.rs @@ -176,7 +176,7 @@ fn task_doc() { cl::run_shell_command("rsync -a --info=progress2 --delete-after target/doc/ docs/"); // Create simple index.html file in docs directory cl::run_shell_command(&format!( - r#"echo "" > docs/index.html"#, + r#"printf "" > docs/index.html\n"#, cargo_toml.package_name().replace("-", "_") )); // pretty html diff --git a/sample_data/cache_crev_remotes/gitlab_com_chrysn_auto-crev-proofs-SQMK-9lvFGG0TNopVnQ0uQ/sign.sh b/sample_data/cache_crev_remotes/gitlab_com_chrysn_auto-crev-proofs-SQMK-9lvFGG0TNopVnQ0uQ/sign.sh index e064b96..cb501e4 100644 --- a/sample_data/cache_crev_remotes/gitlab_com_chrysn_auto-crev-proofs-SQMK-9lvFGG0TNopVnQ0uQ/sign.sh +++ b/sample_data/cache_crev_remotes/gitlab_com_chrysn_auto-crev-proofs-SQMK-9lvFGG0TNopVnQ0uQ/sign.sh @@ -4,7 +4,7 @@ set -x PATH=~/.cargo/bin/:${PATH} -echo "${CREV_SECRET_KEY}" | cargo-crev crev trust "$1" --level none +printf "${CREV_SECRET_KEY}\n" | cargo-crev crev trust "$1" --level none RESULT=$? diff --git a/var_www_scripts/cargo_crev_web/cargo_crev_web_publish.sh b/var_www_scripts/cargo_crev_web/cargo_crev_web_publish.sh index a9c667b..ee72dfe 100644 --- a/var_www_scripts/cargo_crev_web/cargo_crev_web_publish.sh +++ b/var_www_scripts/cargo_crev_web/cargo_crev_web_publish.sh @@ -2,15 +2,15 @@ # cargo_crev_web_publish.sh -echo "rsync -avz --delete-after --exclude 'blocklisted_repos.json' /tmp/bestia-dev/cargo_crev_web/uploaded_web_server_folder/ /var/www/webapps/cargo_crev_web/" +printf "rsync -avz --delete-after --exclude 'blocklisted_repos.json' /tmp/bestia-dev/cargo_crev_web/uploaded_web_server_folder/ /var/www/webapps/cargo_crev_web/\n" rsync -avz --delete-after --exclude 'blocklisted_repos.json' /tmp/bestia-dev/cargo_crev_web/uploaded_web_server_folder/ /var/www/webapps/cargo_crev_web/ -echo "screen -dr cargo_crev_web_8051 -X stuff $'\003'" +printf "screen -dr cargo_crev_web_8051 -X stuff $'\003'\n" screen -dr cargo_crev_web_8051 -X stuff $'\003' -echo "screen -dr cargo_crev_web_8051 -X stuff 'cd /var/www/webapps/cargo_crev_web'" +printf "screen -dr cargo_crev_web_8051 -X stuff 'cd /var/www/webapps/cargo_crev_web'\n" screen -dr cargo_crev_web_8051 -X stuff 'cd /var/www/webapps/cargo_crev_web\n' -echo "screen -dr cargo_crev_web_8051 -X stuff 'chmod +x cargo_crev_web'" +printf "screen -dr cargo_crev_web_8051 -X stuff 'chmod +x cargo_crev_web'\n" screen -dr cargo_crev_web_8051 -X stuff 'chmod +x cargo_crev_web\n' # don't use sudo here, because .cache is under luciano_bestia user, this user must run the binary -echo "screen -dr cargo_crev_web_8051 -X stuff './cargo_crev_web'" +printf "screen -dr cargo_crev_web_8051 -X stuff './cargo_crev_web'\n" screen -dr cargo_crev_web_8051 -X stuff './cargo_crev_web\n' -echo "completed" \ No newline at end of file +printf "completed\n" \ No newline at end of file