From 50b76eac1604450cd5e51dc8da683ea3319d9b2a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 23 Oct 2016 19:22:04 -0400 Subject: [PATCH] Use parameter expansion instead of the "dirname" command. --- all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all b/all index d9b5df0..573055e 100644 --- a/all +++ b/all @@ -1,7 +1,7 @@ #!/bin/bash me="${BASH_SOURCE[0]}" -mydir=`dirname "${me}"` +mydir="${me%/*}" for script in "${mydir}"/*; do [ "${script}" == "$me" ] && continue -- 2.44.2