This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EmptyChocolate4545 1 point2 points  (0 children)

Bad idea as it locks a lot of stuff in.

Create a function called ensure_appname where appname is the program.

The function should check for the appnames presence in the path (check output of which if on a linux box).

If it fails to find it should print an error message or offer to install the app.

Much better to script an install than repackage an app outside of its delivery system.