From ec8bd21b88ec7ca23acd74b16ec07019e35ad58d Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Fri, 13 Aug 2021 13:25:53 -0300 Subject: [PATCH] Fix install_src skipping when already exists --- post-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-install.sh b/post-install.sh index a40a2ec..87b2304 100755 --- a/post-install.sh +++ b/post-install.sh @@ -534,7 +534,7 @@ install_dotfiles() { install_src() { # source code is stored in /root/builds qpushd "$HOME" - [ -e "$1" ] && qpopd && return 0 + [ -d "$(basename $1)" ] && qpopd && return 0 local PKG_NAME="$(basename "$1")" if [ -z "$2" ]; then echo -ne "Installing ${LGREEN}$PKG_NAME${NC} from source..."