Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git not found when installing #179

Open
pakyrs opened this issue Feb 28, 2024 · 2 comments
Open

git not found when installing #179

pakyrs opened this issue Feb 28, 2024 · 2 comments

Comments

@pakyrs
Copy link

pakyrs commented Feb 28, 2024

Describe the bug

I have git installed and when launching the script it prompt me to install it. I can launch git and it is in my path, it's never been a problem anywhere else to be honest, a bit confused.

Steps to reproduce

zsh -x <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --branch release-v1 
...
+main:43> git clone -b release-v1 https://github.com/zap-zsh/zap.git /home/pacadmin/.local/share/zap
+main:43> echo '❌ Git is a dependency for zap. Please install git and try again.'
❌ Git is a dependency for zap. Please install git and try again.
+main:43> return 2
+/proc/self/fd/11:78> [[ 2 -eq 0 ]]
+/proc/self/fd/11:78> return
...
which zsh
/usr/bin/zsh

Expected behavior

Proceed to cloning and installing zap.

Screenshots and recordings

No response

OS / Linux distribution

Kali Rolling

Zsh version

5.9

Zap version

latest

Terminal emulator

Konsole

If using WSL on Windows, which version of WSL

None

Additional context

No response

@mamaraddio
Copy link
Member

mamaraddio commented Apr 9, 2024

@pakyrs Clould you please show the complete output of zsh -x <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --branch release-v1 ?

@louiss0
Copy link

louiss0 commented Aug 19, 2024

This is what I get I don't know why zap worked fine for me the first time.

+/proc/self/fd/11:76> main --branch release-v1
+main:2> local HELP KEEP
+main:3> local BRANCH=( master )
+main:4> local OPTIONS_USAGE=( USAGE: ' install.zsh [options]' ' ' OPTIONS: ' -h, --help Show this help message' ' -k, --keep Don'''t override existing .zshrc' ' -b, --branch Zap repository branch name' )
+main:14> echo '⚡ Zap - Installer\n'
+main:16> zmodload zsh/zutil
+main:17> zparseopts -D -K -- 'h=HELP' '-help=HELP' 'k=KEEP' '-keep=KEEP' 'b:=BRANCH' '-branch:=BRANCH'
+main:23> [[ -z '' ]]
+main:25> date +%Y-%m-%d
+main:25> date +%s
+main:25> local BACKUP_SUFFIX=2024-08-18_1724036781
+main:26> local ZAP_DIR=/home/hello/.local/share/zap
+main:27> local ZSHRC=/home/hello/.zshrc
+main:30> [[ -d /home/hello/.local/share/zap ]]
+main:43> git clone -b release-v1 https://github.com/zap-zsh/zap.git /home/hello/.local/share/zap
+main:43> echo '❌ Git is a dependency for zap. Please install git and try again.'
+main:43> return 2
+/proc/self/fd/11:78> [[ 2 -eq 0 ]]
+/proc/self/fd/11:78> return
⚡ Zap - Installer

❌ Git is a dependency for zap. Please install git and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants