]> gitweb.michael.orlitzky.com - bash.d.git/commitdiff
Use parameter expansion instead of the "dirname" command.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 23 Oct 2016 23:22:04 +0000 (19:22 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 23 Oct 2016 23:22:04 +0000 (19:22 -0400)
all

diff --git a/all b/all
index d9b5df0d3a9bfb52995dd28614988cd90d7e142f..573055e12ab7a1276cbfda78469c2dbf8f0a0411 100644 (file)
--- 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