From 831c9389ad9043298a599631e91a49f7b4a1e35d Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 11 Oct 2023 16:56:18 +0200 Subject: [PATCH] fix: install script --- .dotfiles/helpers/multiselect.sh | 3 +++ .dotfiles/install/asdf.sh | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.dotfiles/helpers/multiselect.sh b/.dotfiles/helpers/multiselect.sh index d618295..4a4a0cb 100644 --- a/.dotfiles/helpers/multiselect.sh +++ b/.dotfiles/helpers/multiselect.sh @@ -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 diff --git a/.dotfiles/install/asdf.sh b/.dotfiles/install/asdf.sh index 0483c2f..877cf5a 100755 --- a/.dotfiles/install/asdf.sh +++ b/.dotfiles/install/asdf.sh @@ -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