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