summaryrefslogtreecommitdiff
path: root/src/toru/toru-where
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-01 17:46:32 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-04 14:28:08 -0400
commit2ae5371f347603d34a7ccc33681e612db338d11e (patch)
tree2ecb5b05dcb1ffc2defb31c7f64d6720435f13e5 /src/toru/toru-where
parentbb97cfc85d9b711b517985abbd9832bff9c4b37a (diff)
Have everything use a main() function, where it isn't too tricky to convert
"Ignore space change" is essential to making sense of this patch.
Diffstat (limited to 'src/toru/toru-where')
-rwxr-xr-xsrc/toru/toru-where11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/toru/toru-where b/src/toru/toru-where
index 14a40eb..ba7fb0a 100755
--- a/src/toru/toru-where
+++ b/src/toru/toru-where
@@ -19,7 +19,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "$(librelib conf)"
-load_files libretools
-check_vars libretools TORUPATH || exit 1
-tcamgr get "${TORUPATH}/paths.tch" "$1" 2>/dev/null || echo ""
+main() {
+ load_files libretools
+ check_vars libretools TORUPATH || exit 1
+
+ tcamgr get "${TORUPATH}/paths.tch" "$1" 2>/dev/null || echo ""
+}
+
+main "$@"