Comments (3)
Hi,
that's because zsh does not have "declare". Afaik this is a bash feature [0].
You should try: $> bash gitdumper.sh
[0] https://stackoverflow.com/questions/10194861/bash-zsh-declare-oh-my
EDIT: Sorry, didn't carefully read the issue (I'm on vacation... :)). I'm not sure, why the bash gitdumper.sh
does not work? Can you try to switch to a bash first and then running the script from there?
$zsh> bash
$bash> gitdumper.sh
from gittools.
Hi,
Thanks for your quick reply. As mentioned from my first post, I switched to bash first then bash gitdumper.sh
(even ./gitdumper.sh
) but the same error keeps occuring. My PC (with fedora) is running with the same Zsh settings as my mac at work but everything worked perfectly.
Will try again next Monday by your advice. I meant I will try with the command which is only gitdumper.sh
Edited:
Hope this will help you to figure out about this issue. I tested on:
-
Fedora 26 (zsh)
(zsh)bash gitdumper.sh
--> ok
(zsh)./gitdumper.sh
--> ok
(zsh)bash
--> change to bash
(bash)./gitdumper.sh
--> ok
(bash)bash gitdumper.sh
--> ok -
macOS 10.12 (zsh)
(zsh)bash gitdumper.sh
--> NG
(zsh)bash
--> change to bash
(bash)bash gitdumper.sh
--> NG
(bash)./gitdumper.sh
--> NG
I chmodded u+x the shell file and do the command with the same user.
from gittools.
Hi, I finally get it resolved.
The old version of Apple's built-in bash is the cause of all this.
╰─ /bin/bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
Copyright (C) 2007 Free Software Foundation, Inc.
After installing new bash from homebrew, everything seems to properly work now.
brew install bash
╰─ /usr/local/bin/bash --version
GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.3.0)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
╰─ /usr/local/bin/bash gitdumper.sh
###########
# GitDumper is part of https://github.com/internetwache/GitTools
#
# Developed and maintained by @gehaxelt from @internetwache
#
# Use at your own risk. Usage might be illegal in certain circumstances.
# Only for educational purposes!
###########
[*] USAGE: http://target.tld/.git/ dest-dir [--git-dir=otherdir]
--git-dir=otherdir Change the git folder name. Default: .git
from gittools.
Related Issues (20)
- Finder HOT 1
- Rewrite argument parsing
- Add a requirements.txt HOT 2
- Dumper tool is broken :( HOT 10
- Fix colors under mac
- idx and pack HOT 3
- 37487f6 Seems to break gitfinder.py
- Problem with the finder HOT 3
- [Finder] Name or service not known HOT 1
- not works HOT 2
- [bug] Some urls cause the finder to fail HOT 1
- socket.timeout: timed out HOT 2
- Proxy Suppport HOT 2
- Check for redirects and file type in `gitdumper.sh` HOT 3
- fatal: unexpected line in .git/packed-refs: </script> HOT 3
- Please add releases HOT 2
- Cant run gitfinder.py because i got error HOT 1
- gitfinder Error ! HOT 2
- Git HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gittools.