git-ignore icon indicating copy to clipboard operation
git-ignore copied to clipboard

git-ignore: line 71: [: -eq: unary operator expected

Open Abdillah opened this issue 7 years ago • 0 comments

On the lines,

    if [ ${global} -eq 1 ] ; then
        target="${HOME}/.gitignore"
    elif [ ${info_exclude} -eq 1 ]; then
        target="${git_dir}/info/exclude"

should be shrouded with double quote

    if [ "${global}" -eq 1 ] ; then
        target="${HOME}/.gitignore"
    elif [ "${info_exclude}" -eq 1 ]; then
        target="${git_dir}/info/exclude"

I'm sorry for not providing any pull request. Maybe in the future.

Abdillah avatar Jul 08 '17 07:07 Abdillah