Command in DLAGENTS works in shell but not in makepkg
8 Jul
2025
8 Jul
'25
3:51 a.m.
Hey, Part of a PKGBUILD I'm trying to make looks like this: source=(Lark-linux_x64-${pkgver}.deb::https://www.larksuite.com/api/package_info?platform=10) DLAGENTS=("https::/usr/bin/sh -c curl\ -LO\ \"\$\(curl\ \'%u\'\ \|\ grep\ -oP\ \'\(\?\<=\"download_link\":\"\)\[\^\"\]\*\'\ --\ \|\ sed\ \'s/\\\\u0026/\\\&/g\'\ --\)\"") The command (/usr/bin/sh...) works when I run it in my shell, but not when I run makepkg on the PKGBUILD. Any help would be really, really appreciated. I don't even know how to make makepkg tell me what command it runs, and even that would be nice. -- Cheers, Aᴀʀᴏɴ
22 Jul
22 Jul
5:21 p.m.
I have absolutely no idea why, but adding an extra four backslashes before the \u seems to have fixed it. -- Cheers, Aᴀʀᴏɴ
183
Age (days ago)
197
Last active (days ago)
1 comments
1 participants
participants (1)
-
Aaron Liu