Skip to content
Snippets Groups Projects
Commit 87ab0df5 authored by nimrod's avatar nimrod
Browse files

A little cleaner.

parent a9d931d9
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
set -eu
basename="$(basename "$0")"
command="$(env -i sh -c "command -v $basename")" || { echo "$basename: not found"; exit 127; }
command="$(command -pv "$basename")" || { echo "$basename: not found"; exit 127; }
if alias="$(command -v "$basename-${1:-}")"
then
shift
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment