Fix install_src skipping when already exists

This commit is contained in:
Augusto Gunsch 2021-08-13 13:25:53 -03:00
parent f3b8367452
commit ec8bd21b88
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 1 additions and 1 deletions

View File

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