mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-22 19:17:34 +00:00
[provisioning] Only install mu if unavailable
This commit is contained in:
parent
8006ecd380
commit
343a02f44f
1 changed files with 14 additions and 12 deletions
|
@ -111,18 +111,20 @@ case $_PLATFORM in
|
|||
done
|
||||
dir=`mktemp -d` && \
|
||||
pushd $dir >/dev/null
|
||||
echo "[tgz] Fetching mu"
|
||||
curl -sL https://github.com/djcb/mu/archive/master.tar.gz \
|
||||
| tar xz --strip 1 && \
|
||||
echo "[tgz] Configuring mu" && \
|
||||
./autogen.sh >/dev/null 2>&1 && \
|
||||
./configure --prefix=/usr >/dev/null 2>&1 && \
|
||||
echo "[tgz] Building mu" && \
|
||||
make >/dev/null 2>&1 && \
|
||||
echo "[tgz] Installing mu" && \
|
||||
sudo make install >/dev/null 2>&1
|
||||
popd >/dev/null
|
||||
rm -rf "$dir"
|
||||
if ! command -v mu >/dev/null; then
|
||||
echo "[tgz] Fetching mu"
|
||||
curl -sL https://github.com/djcb/mu/archive/master.tar.gz \
|
||||
| tar xz --strip 1 && \
|
||||
echo "[tgz] Configuring mu" && \
|
||||
./autogen.sh >/dev/null 2>&1 && \
|
||||
./configure --prefix=/usr >/dev/null 2>&1 && \
|
||||
echo "[tgz] Building mu" && \
|
||||
make >/dev/null 2>&1 && \
|
||||
echo "[tgz] Installing mu" && \
|
||||
sudo make install >/dev/null 2>&1
|
||||
popd >/dev/null
|
||||
rm -rf "$dir"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue