From ce265a651c12a784c2eb103cbedd8739cb47f64b Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 27 Jul 2025 21:41:18 +0300 Subject: [PATCH] homebrew: use full paths --- bash/usr-local-bin/homebrew | 8 ++++---- bash/usr-local-bin/linuxbrew | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) create mode 120000 bash/usr-local-bin/linuxbrew diff --git a/bash/usr-local-bin/homebrew b/bash/usr-local-bin/homebrew index d27ee24..4a1e7e1 100755 --- a/bash/usr-local-bin/homebrew +++ b/bash/usr-local-bin/homebrew @@ -17,13 +17,13 @@ if [ -d /var/roothome ]; then fi cd /home/linuxbrew/.linuxbrew/bin/ - cp brew brew2 - sed -i 's/pwd\ \-P/pwd/g' brew2 + cp /home/linuxbrew/.linuxbrew/bin/brew /home/linuxbrew/.linuxbrew/bin/brew2 + sed -i 's/pwd\ \-P/pwd/g' /home/linuxbrew/.linuxbrew/bin/brew2 touch "/tmp/brew.$(id -u).$(date -I)" fi - env brew2 $@ + /home/linuxbrew/.linuxbrew/bin/brew2 $@ set +x else - env brew $@ + /home/linuxbrew/.linuxbrew/bin/brew $@ fi diff --git a/bash/usr-local-bin/linuxbrew b/bash/usr-local-bin/linuxbrew new file mode 120000 index 0000000..15eff45 --- /dev/null +++ b/bash/usr-local-bin/linuxbrew @@ -0,0 +1 @@ +homebrew \ No newline at end of file