From: Matt B. <wal...@ma...> - 2019-08-01 01:27:04
|
> On Jul 27, 2019, at 9:25 PM, Robert Krawitz <rl...@al...> wrote: > > BTW, I ran shellcheck on the escputil wrapper and the uninstaller; > there are quite a few messages (and the escputil wrapper doesn't > completely parse). Got quite a few messages; they should be checked > out. > > -- > Robert Krawitz <rl...@al...> More than a bit embarrassing. I remember having some problems making sure all the `if...fi` sections were matched up. Either I missed it or the final version didn't have the last fi removed. At least for the escputil wrapper, many of the comments had to do with not being POSIX compliant. I am self taught on shell scripting by following the scripts of developers that were doing wrapper scripts or scripts to automate a post install process. I was also using the man pages in macos. The web is also full of wonderful help turns out to be non POSIX compliant. Hmmm. I am sending Robert a revised wrapper for the escputil script that should parse better. Matt -- Matt |