Skip to content

Commit

Permalink
brew without sudo: part 2 (#883)
Browse files Browse the repository at this point in the history
Add group write permissions without sudo.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters authored Mar 8, 2023
1 parent 2c6058c commit 6cd691f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export HOMEBREW_NO_INSTALL_FROM_API=1
. ${SCRIPT_DIR}/lib/_homebrew_base_setup.bash
brew cleanup || echo "brew cleanup couldn't be run"
mkdir -p ${HOMEBREW_CELLAR}
sudo chmod -R ug+rwx ${HOMEBREW_CELLAR}
chmod -R ug+rwx ${HOMEBREW_CELLAR}
echo '# END SECTION'

echo '# BEGIN SECTION: brew information'
Expand Down Expand Up @@ -214,5 +214,5 @@ rm -fr \$HOME/.gazebo/models test_results*
echo '# END SECTION'

echo "# BEGIN SECTION: re-add group write permissions"
sudo chmod -R ug+rwx ${HOMEBREW_CELLAR}
chmod -R ug+rwx ${HOMEBREW_CELLAR}
echo '# END SECTION'
4 changes: 2 additions & 2 deletions jenkins-scripts/lib/project-install-homebrew.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export HOMEBREW_NO_INSTALL_FROM_API=1
. ${SCRIPT_DIR}/lib/_homebrew_base_setup.bash
brew cleanup || echo "brew cleanup couldn't be run"
mkdir -p ${HOMEBREW_CELLAR}
sudo chmod -R ug+rwx ${HOMEBREW_CELLAR}
chmod -R ug+rwx ${HOMEBREW_CELLAR}
echo '# END SECTION'

echo '# BEGIN SECTION: brew information'
Expand Down Expand Up @@ -81,5 +81,5 @@ brew list | grep '^szip$' || brew doctor || echo MARK_AS_UNSTABLE
echo '# END SECTION'

echo "# BEGIN SECTION: re-add group write permissions"
sudo chmod -R ug+rwx ${HOMEBREW_CELLAR}
chmod -R ug+rwx ${HOMEBREW_CELLAR}
echo '# END SECTION'

0 comments on commit 6cd691f

Please sign in to comment.