On Wed, 2020-11-04 at 16:33 +0100, sig...@rkta.de wrote: > > Due to the hard-coded relative paths, the script failed when not called > from the correct directory. This patch fixes this by converting the path > to an absolute one.
Could it be simpler to 'cd $( dirname $0 )' instead at the top of the file? To execute the script in the location that it resides in (as seems to be assumed in the script's implementation), regardless of where it was invoked from. Seems more robust than hunting down more paths during maintenance. virtually yours Gerhard Sittig -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel