From a6cc84df578442225bf19dbb89d98627b6dea434 Mon Sep 17 00:00:00 2001 From: Shinichi Okada Date: Fri, 25 Jun 2021 10:25:53 +0900 Subject: [PATCH] bug fix for installation --- awesome | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awesome b/awesome index 2b19eed..0c091b6 100755 --- a/awesome +++ b/awesome @@ -174,17 +174,17 @@ fn_install() { # returns repo_link repo_script "$1" "$2" cd "$awesome_dir" || exit - repo=$repo_name # echo "script dir: $script_dir" # echo "repo name: $repo_name" # echo "repo link: $repo_link" - if [[ -z $repo_name ]]; then + if [[ -n $repo_name ]]; then echo "Cloning ..." git clone "${repo_link}" echo "Cloning done." fi - echo "${awesome_dir}, ${repo_name}, ${script_name}, ${bin_dir}" + # echo "${awesome_dir}, ${repo_name}, ${script_name}, ${bin_dir}" create_symlink "${awesome_dir}" "${repo_name}" "${script_name}" "${bin_dir}" || exit + repo=$repo_name elif [[ $slash_num = 1 ]]; then # $1 alexanderepstein/Bash-Snippets # $2 cheat/cheat