fix: install script

This commit is contained in:
max_richter 2023-10-11 16:56:18 +02:00
parent 666b66cd0c
commit 831c9389ad
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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