parent
ee68a7c125
commit
e9aa76e640
3 changed files with 10 additions and 19 deletions
@ -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…
Reference in new issue