Fix install_src skipping when already exists
This commit is contained in:
parent
f3b8367452
commit
ec8bd21b88
|
@ -534,7 +534,7 @@ install_dotfiles() {
|
||||||
install_src() {
|
install_src() {
|
||||||
# source code is stored in /root/builds
|
# source code is stored in /root/builds
|
||||||
qpushd "$HOME"
|
qpushd "$HOME"
|
||||||
[ -e "$1" ] && qpopd && return 0
|
[ -d "$(basename $1)" ] && qpopd && return 0
|
||||||
local PKG_NAME="$(basename "$1")"
|
local PKG_NAME="$(basename "$1")"
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
echo -ne "Installing ${LGREEN}$PKG_NAME${NC} from source..."
|
echo -ne "Installing ${LGREEN}$PKG_NAME${NC} from source..."
|
||||||
|
|
Loading…
Reference in New Issue