changed tar behaviour considering ownership, updated git hook, updated instruction in README.md

for/master
Mateusz Chochół 7 years ago
parent 2986e3ba38
commit d67faef945
  1. 2
      README.md
  2. 2
      getbb.sh
  3. 4
      post-hook.sh

@ -4,5 +4,5 @@
## install: ## install:
``` ```
wget https://cz0.cz/getbb.sh wget https://cz0.cz/getbb.sh
chmod +x getbs.sh && ./getbs.sh bash getbb.sh
``` ```

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
wget cz0.cz/betterbash-latest.tar.gz -q -O - | tar -xz -C ~ wget cz0.cz/betterbash-latest.tar.gz -q -O - | tar -xz --no-same-owner -C ~
CMD='[ -f ~/.bshell/bb.sh ] && . ~/.bshell/bb.sh' CMD='[ -f ~/.bshell/bb.sh ] && . ~/.bshell/bb.sh'
grep -q "$CMD" ~/.bashrc || echo "$CMD" >> ~/.bashrc grep -q "$CMD" ~/.bashrc || echo "$CMD" >> ~/.bashrc

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
rm -rf /data/tmp/BetterBash
cd /data/tmp/ cd /data/tmp/
git clone http://127.0.0.1:3000/czoczo/BetterBash git clone http://127.0.0.1:3000/czoczo/BetterBash
cp /data/tmp/BetterBash/getbb.sh /wwwroot/getbb.sh 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"" tar -czvf betterbash-latest.tar.gz -C /data/tmp/BetterBash/ . --exclude=".git" --exclude="README.md" --exclude="getbb.sh" --exclude="post-hook.sh"
rm -rf /data/tmp/BetterShell
rm /wwwroot/betterbash-latest.tar.gz rm /wwwroot/betterbash-latest.tar.gz
mv betterbash-latest.tar.gz /wwwroot/betterbash-latest.tar.gz mv betterbash-latest.tar.gz /wwwroot/betterbash-latest.tar.gz

Loading…
Cancel
Save