fix: install script
This commit is contained in:
parent
666b66cd0c
commit
831c9389ad
@ -18,8 +18,11 @@ function multiselect() {
|
|||||||
key_input() {
|
key_input() {
|
||||||
local key
|
local key
|
||||||
IFS= read -rsn1 key 2>/dev/null >&2
|
IFS= read -rsn1 key 2>/dev/null >&2
|
||||||
|
echo $key >> /tmp/test.log
|
||||||
if [[ $key = "" ]]; then echo enter; fi
|
if [[ $key = "" ]]; then echo enter; fi
|
||||||
if [[ $key = $'\x20' ]]; then echo space; fi
|
if [[ $key = $'\x20' ]]; then echo space; fi
|
||||||
|
if [[ $key = "j" ]] ; then echo down; fi
|
||||||
|
if [[ $key = "k" ]] ; then echo up; fi
|
||||||
if [[ $key = $'\x1b' ]]; then
|
if [[ $key = $'\x1b' ]]; then
|
||||||
read -rsn2 key
|
read -rsn2 key
|
||||||
if [[ $key = [A ]]; then echo up; fi
|
if [[ $key = [A ]]; then echo up; fi
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
if [ -d ~/.asdf ] ; then
|
if [ -d ~/.asdf ] ; then
|
||||||
|
|
||||||
echo " ✓ asdf already installed"
|
echo " ✓ asdf already installed"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
git clone --quiet https://github.com/asdf-vm/asdf.git ~/.asdf > /dev/null
|
git clone --quiet https://github.com/asdf-vm/asdf.git ~/.asdf > /dev/null
|
||||||
cd ~/.asdf
|
cd ~/.asdf
|
||||||
git checkout --quiet "$(git describe --abbrev=0 --tags)" > /dev/null
|
git checkout --quiet "$(git describe --abbrev=0 --tags)" > /dev/null
|
||||||
. asdf.sh
|
. asdf.sh
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user