simonthum / git-sync

Safe and simple one-script git synchronization
773 stars 99 forks source link

check_initial_file_state:3: = not found #16

Closed linonetwo closed 4 years ago

linonetwo commented 4 years ago

I get

git-sync: Preparing. Repo in .git
/xxxrepo/Meme-of-LinOnetwo
git-sync: Mode sync
git-sync: Using origin/master
check_initial_file_state:3: = not found
/xxxrepo/Meme-of-LinOnetwo/scripts/sync.sh:263: = not found

when running /usr/local/bin/zsh /xxxrepo/Meme-of-LinOnetwo/scripts/sync.sh

linonetwo commented 4 years ago

Oh, syntax in zsh and bash is different...

I use /bin/sh instead now (MacOS is switching to zsh, but sh will retain).

simonthum commented 4 years ago

sh should work, can you confirm please? Would be nice to know ;)

linonetwo commented 4 years ago

Yes, it works under sh, sh is the last safety net.

simonthum commented 4 years ago

Thanks a lot!