Fix: install.sh
This commit is contained in:
parent
d95568b7ae
commit
a55c031a34
12
install.sh
12
install.sh
@ -1,10 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
_target="$HOME/.local/bin"
|
||||
mkdir -vp "$_target"
|
||||
rm -v "${_target}/clone-all"
|
||||
echo '#!/usr/bin/env bash' >> "${_target}/clone-all"
|
||||
set +e
|
||||
rm "${_target}/clone-all" 2 &>/dev/null
|
||||
set -e
|
||||
echo '#!/usr/bin/env bash' >>"${_target}/clone-all"
|
||||
cd src
|
||||
cat ./*.sh | grep -v 'usr/bin/env' >>"${_target}/clone-all"
|
||||
chmod +x "${_target}/clone-all"
|
||||
@ -12,4 +13,7 @@ if ! [[ ":$PATH:" == *":$_target:"* ]]; then
|
||||
echo "Your PATH is missing '$_target', consider adding it."
|
||||
fi
|
||||
cd ..
|
||||
echo "fin."
|
||||
if ! ls -lah "${_target}/clone-all" >/dev/null; then
|
||||
echo "installation failed somehow"
|
||||
fi
|
||||
echo "clone-all installed to: ${_target}/clone-all"
|
||||
|
Loading…
Reference in New Issue
Block a user