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
|
#!/bin/bash
|
||||||
|
|
||||||
scriptdir=$(dirname $(realpath $0))
|
scriptdir=$(dirname $(realpath $0))
|
||||||
|
tempdir="/tmp"
|
||||||
|
|
||||||
check_google_access() {
|
check_google_access() {
|
||||||
abroad=0
|
abroad=0
|
||||||
@ -54,15 +55,11 @@ configure_install_bin() {
|
|||||||
|
|
||||||
apt install exa -y
|
apt install exa -y
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
cd $tempdir
|
unzip $scriptdir/files/exa-linux-x86_64-v0.10.1.zip -d $tempdir/exa
|
||||||
wget -O exa.zip "$(github)/ogham/exa/releases/download/v0.10.1/exa-linux-x86_64-v0.10.1.zip"
|
cp $tempdir/exa/bin/* /usr/local/bin/
|
||||||
unzip exa.zip -d exa
|
cp $tempdir/exa/man/* /usr/share/man/man1/
|
||||||
cp exa/bin/* /usr/local/bin/
|
cp $tempdir/exa/completions/exa.zsh /usr/local/share/zsh/site-functions
|
||||||
cp exa/man/* /usr/share/man/man1/
|
rm $tempdir/exa -r
|
||||||
cp exa/completions/exa.zsh /usr/local/share/zsh/site-functions
|
|
||||||
rm exa -r
|
|
||||||
rm exa.zip
|
|
||||||
cd -
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user