From 7934e32b271f8b2cea4f3247daa7af7041b38628 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 12 Jan 2024 02:55:39 +0100 Subject: [PATCH] Remove target check in autoinstall/before.sh --- autoinstall/before.sh | 9 ++++++--- autostart-manage/bashly.yml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/autoinstall/before.sh b/autoinstall/before.sh index c0e639e..7a88b5f 100644 --- a/autoinstall/before.sh +++ b/autoinstall/before.sh @@ -1,14 +1,17 @@ #!/usr/bin/env bash -if [ "${action:?}" = "run" ] +action=${action:?} + +# if action is run or completions, do nothing +if [ "$action" = "run" ] || [ "$action" = "completions" ] then - return + exit 0 fi clean=${args[--clean]:-} target=${args[target]:?} -if [ "${action:?}" = "exe" ] +if [ "$action" = "exe" ] then target="$HOME/.local/bin/$target" fi diff --git a/autostart-manage/bashly.yml b/autostart-manage/bashly.yml index 853529d..4c292bd 100644 --- a/autostart-manage/bashly.yml +++ b/autostart-manage/bashly.yml @@ -1,6 +1,6 @@ name: autostart-manage help: Manage autostart -version: 0.1.0 +version: 0.1.1 dependencies: tomlq: please install yq (https://github.com/kislyuk/yq)