]> git.corax.cc Git - toolbox/commit
toolbox.sh: Don't mask realpath's return value
authorMatthias Kruk <m@m10k.eu>
Thu, 22 Dec 2022 04:38:06 +0000 (13:38 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 22 Dec 2022 04:38:06 +0000 (13:38 +0900)
commit2d5b5d4fd765a7b3e3bb3f795fd75a226e2676e8
tree7d7c403b53efd1e3860ba3d381f90e3ee04eb5c3
parentce99e872780d84b8424d359cc0bc3d9e2f131110
toolbox.sh: Don't mask realpath's return value

When determining the location of toolbox.sh, the result from realpath
is passed to dirname to remove the script name from the path. However,
both commands are executed in the same statement, causing the return
value of realpath to be masked by dirname.

This commit splits the statement into separate steps, so that return
values are not masked.
toolbox.sh