You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing a package I see the following: /var/lib/dpkg/info/<package-name>.postinst: 30: [[: not found.
Essentially, the postisnt from fpm uses /bin/sh shebang, which is not bash by default on most Debian systems (Ubuntu as well).
So the script is running in the POSIX shell (or in compat mode at the very least), so some things do not work as expected.
At least for Debian packages:
the shebang does not have any effect, it's just a comment, fpm will put the code from after-install.tpl inside a function.
When installing a package I see the following:
/var/lib/dpkg/info/<package-name>.postinst: 30: [[: not found
.Essentially, the
postisnt
fromfpm
uses/bin/sh
shebang, which is notbash
by default on most Debian systems (Ubuntu as well).So the script is running in the POSIX shell (or in compat mode at the very least), so some things do not work as expected.
At least for Debian packages:
fpm
will put the code fromafter-install.tpl
inside a function.The text was updated successfully, but these errors were encountered: