add exa file
This commit is contained in:
parent
d3c625dc21
commit
36654b57d5
BIN
files/exa-linux-x86_64-v0.10.1.zip
Normal file
BIN
files/exa-linux-x86_64-v0.10.1.zip
Normal file
Binary file not shown.
15
init_root.sh
15
init_root.sh
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
scriptdir=$(dirname $(realpath $0))
|
||||
tempdir="/tmp"
|
||||
|
||||
check_google_access() {
|
||||
abroad=0
|
||||
@ -54,15 +55,11 @@ configure_install_bin() {
|
||||
|
||||
apt install exa -y
|
||||
if [ $? -ne 0 ]; then
|
||||
cd $tempdir
|
||||
wget -O exa.zip "$(github)/ogham/exa/releases/download/v0.10.1/exa-linux-x86_64-v0.10.1.zip"
|
||||
unzip exa.zip -d exa
|
||||
cp exa/bin/* /usr/local/bin/
|
||||
cp exa/man/* /usr/share/man/man1/
|
||||
cp exa/completions/exa.zsh /usr/local/share/zsh/site-functions
|
||||
rm exa -r
|
||||
rm exa.zip
|
||||
cd -
|
||||
unzip $scriptdir/files/exa-linux-x86_64-v0.10.1.zip -d $tempdir/exa
|
||||
cp $tempdir/exa/bin/* /usr/local/bin/
|
||||
cp $tempdir/exa/man/* /usr/share/man/man1/
|
||||
cp $tempdir/exa/completions/exa.zsh /usr/local/share/zsh/site-functions
|
||||
rm $tempdir/exa -r
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user