Fix: install.sh

master
kayos@tcp.direct 2 months ago
parent d95568b7ae
commit a55c031a34
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

@ -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…
Cancel
Save