wip
This commit is contained in:
parent
e7a1a851a8
commit
7e4f33689c
1 changed files with 9 additions and 6 deletions
15
neovim.sh
15
neovim.sh
|
@ -29,6 +29,7 @@
|
|||
source "$import"
|
||||
|
||||
echo "${BLUE}Sourcing external script:${NC} $url"
|
||||
line
|
||||
sleep 0.1
|
||||
rm -f "$import"
|
||||
fi
|
||||
|
@ -70,17 +71,19 @@
|
|||
cloneDir="$(mktemp -d)"
|
||||
cd $cloneDir || mkdir $cloneDir && cd $cloneDir
|
||||
|
||||
line
|
||||
|
||||
# spin yellow "Cloning $(pen bold red $PACKAGE) $(pen yellow 'sources at') $(pen red $cloneDir/neovim).."
|
||||
# line
|
||||
|
||||
spin yellow "Cloning $(pen bold red ${PACKAGE:-neovim}) $(pen yellow 'sources at') $(pen red $cloneDir/neovim).."
|
||||
sleep 0.3
|
||||
if command_exists git; then
|
||||
if run --err err git clone --depth=1 https://github.com/neovim/neovim.git; then
|
||||
check green "Cloned $PACKAGE sources"
|
||||
upclear
|
||||
check bold green "Cloned $PACKAGE sources"
|
||||
cd neovim
|
||||
else
|
||||
upclear
|
||||
throw "Error cloning neovim"
|
||||
pen bold red "The error: ${err:-}"
|
||||
echo-error "The error: ${err:-}"
|
||||
fi
|
||||
# minifyed version..
|
||||
# run --err err git clone --depth=1 https://github.com/neovim/neovim.git && check green "Cloned $PACKAGE sources" && cd neovim || throw "Error cloning neovim" && pen bold red "The error: ${err:-}"
|
||||
|
@ -88,7 +91,6 @@
|
|||
echo-error "Git was required, but is missing.. exiting now"
|
||||
return 69
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
makeInstall() {
|
||||
|
@ -224,6 +226,7 @@
|
|||
|
||||
if ! command_exists pkg-install && ! command_exists check-and-install && ! command_exists spin; then
|
||||
source-script $dream
|
||||
line
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue