From 8554f20fe32bfd91bed8fdbc1519739ad06c5747 Mon Sep 17 00:00:00 2001 From: Josh Crites Date: Tue, 19 Dec 2023 16:24:29 -0500 Subject: [PATCH] try sudo --- update_contract.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_contract.sh b/update_contract.sh index eb60c69..91074bf 100755 --- a/update_contract.sh +++ b/update_contract.sh @@ -41,7 +41,7 @@ if [ $? -eq 0 ]; then # Check if the directory exists if [ -d "$tmp_dir/$contracts_path/$name_value" ]; then echo "Directory found: $name_value" - cp -r $tmp_dir/$contracts_path/$name_value/src/ $copy_location/ + sudo cp -r $tmp_dir/$contracts_path/$name_value/src/ $copy_location/ rm -rf $tmp_dir echo "Copied the contracts to $copy_location" # You can add additional commands here to handle the directory