Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Oneliners now will automatically use sudo if /usr/local is not writeable
- Loading branch information
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
DIR=`mktemp -u /tmp/agner.XXXXXX` && git clone https://github.com/agner/agner.git $DIR && cd $DIR && make && ./agner install agner && echo Fetching index... && agner list -d | awk '{printf "."; fflush()}' && echo && rm -rf $DIR | ||
DIR=`mktemp -u /tmp/agner.XXXXXX` && | ||
git clone https://github.com/agner/agner.git $DIR && | ||
cd $DIR && make && | ||
if [ -w /usr/local ]; then ./agner install agner; else sudo ./agner install agner; fi && | ||
echo Fetching index... && | ||
agner list -d | awk '{printf "."; fflush()}' && echo && rm -rf $DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
DIR=`mktemp -u /tmp/agner.XXXXXX` && git clone https://github.com/agner/agner.git $DIR && cd $DIR && git checkout -b release origin/release && make && ./agner install agner -v @release && echo Fetching index... && agner list -d | awk '{printf "."; fflush()}' && echo && rm -rf $DIR | ||
DIR=`mktemp -u /tmp/agner.XXXXXX` && | ||
git clone https://github.com/agner/agner.git $DIR && | ||
cd $DIR && | ||
git checkout -b release origin/release && | ||
make && | ||
if [ -w /usr/local ]; then ./agner install agner -v @release; else sudo ./agner install agner -v @release; fi && | ||
echo Fetching index... && | ||
agner list -d | awk '{printf "."; fflush()}' && echo && rm -rf $DIR |