Skip to content

Commit

Permalink
use sudo via sh
Browse files Browse the repository at this point in the history
  • Loading branch information
akashchi committed Jan 29, 2024
1 parent a4d96ac commit 66e8d40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/job_pytorch_models_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
if [ "$(id -u)" -eq 0 ]; then
echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
else
sudo echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
sudo sh -c "echo 'Acquire::Retries \"10\";' >> /etc/apt/apt.conf.d/80-retries"
fi
- name: Download OpenVINO package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job_tensorflow_hub_models_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
if [ "$(id -u)" -eq 0 ]; then
echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
else
sudo echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
sudo sh -c "echo 'Acquire::Retries \"10\";' >> /etc/apt/apt.conf.d/80-retries"
fi
- name: Download OpenVINO package
Expand Down

0 comments on commit 66e8d40

Please sign in to comment.