Skip to content

Commit

Permalink
package/scripts/postinstall: handle /usr/local/Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongRuoyu committed Apr 10, 2024
1 parent b516fda commit ad4a080
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/scripts/postinstall
Expand Up @@ -39,6 +39,7 @@ then
cp -pRL "${homebrew_directory}/.git" "/usr/local/Homebrew/"
mv "${homebrew_directory}/cache_api" "/usr/local/Homebrew/"

git=(git -c safe.directory="/usr/local/Homebrew")
"${git[@]}" -C /usr/local/Homebrew reset --hard
"${git[@]}" -C /usr/local/Homebrew checkout --force master
else
Expand Down

0 comments on commit ad4a080

Please sign in to comment.