updated README.md

main
czoczo 10 months ago
parent ee68a7c125
commit e9aa76e640
  1. 8
      README.md
  2. 13
      getbb.sh
  3. 8
      post-hook.sh

@ -15,11 +15,5 @@ source ~/.bashrc
``` ```
or just: or just:
``` ```
curl https://cz0.cz/getbb.sh | sh && source ~/.bashrc curl https://git.cz0.cz/getbb.sh | sh && source ~/.bashrc
``` ```
(but only if you really, really, _really_ trust me)
(in fact, no one really should... one of the many reasones being https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/ )

@ -1,4 +1,9 @@
#!/bin/bash URL='https://git.cz0.cz/czoczo/BetterBash/raw/branch/master/.bshell' && \
wget cz0.cz/betterbash-latest.tar.gz -q -O - | tar -xz --no-same-owner -C ~ DIR=~/.bshell && \
CMD='[ -f ~/.bshell/bb.sh ] && . ~/.bshell/bb.sh' CMD='[ -f ~/.bshell/bb.sh ] && . ~/.bshell/bb.sh' && \
grep -q "$CMD" ~/.bashrc || echo "$CMD" >> ~/.bashrc mkdir -p $DIR && \
wget $URL/bb.sh -O $DIR/bb.sh && \
wget $URL/git-prompt.sh -O $DIR/git-prompt.sh && \
grep -q "$CMD" ~/.bashrc || echo "$CMD" >> ~/.bashrc && \
source ~/.bashrc

@ -1,8 +0,0 @@
#!/bin/bash
rm -rf /data/tmp/BetterBash
cd /data/tmp/
git clone http://127.0.0.1:3000/czoczo/BetterBash
cp /data/tmp/BetterBash/getbb.sh /wwwroot/getbb.sh
tar -czvf betterbash-latest.tar.gz -C /data/tmp/BetterBash/ . --exclude=".git" --exclude="README.md" --exclude="getbb.sh" --exclude="post-hook.sh"
rm /wwwroot/betterbash-latest.tar.gz
mv betterbash-latest.tar.gz /wwwroot/betterbash-latest.tar.gz
Loading…
Cancel
Save