[Slackbuilds-users] What if we `source`d the version number

David O'Shaughnessy lists at osh.id.au
Wed Jan 5 04:37:07 UTC 2022


On Wed, 5 Jan 2022, at 5:39 AM, B Watson wrote:
> It'd take away the ability to override VERSION in the environment. A lot
> of us do this:
>
>   VERSION=1.2.3 sh foo.SlackBuild
>
> ...to attempt to build a new version of 'foo' with the existing
> script. Of course this doesn't always work, but it works often enough
> to be useful.

What about wrapping the original suggestion inside some simple logic, so that sourcing .info is only triggered if VERSION in the environment is empty?

--
Dave


More information about the SlackBuilds-users mailing list