greyltc-org / docker-archlinux-aur

The Official Arch Linux Docker image after installing an AUR helper.
GNU General Public License v3.0
84 stars 14 forks source link

unescaped $ in add-aur.sh causes error in aur-install #6

Closed Godhart closed 2 years ago

Godhart commented 2 years ago

I believe that escaping slash is missing before '$' char in add-aur.sh on line #77

...
tee /bin/aur-install <<EOF
#!/bin/sh
if test "$#" -ne 0
then
...

if test "$#" -ne 0 should be changed to if test "\$#" -ne 0

Without this bugfix first line in aur-install looks like if test "0" -ne 0 which obviously is incorrect

greyltc commented 2 years ago

thanks!