Skip to content
Snippets Groups Projects
Commit 27a39552 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Merge remote-tracking branch 'madduck/shell-improvements'

parents 4c59c210 2ee05f31
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,12 @@ ...@@ -12,6 +12,12 @@
# which is admittedly extremely unlikely to the point of being impossible, # which is admittedly extremely unlikely to the point of being impossible,
# this software will most likely follow suit. # this software will most likely follow suit.
basename() {
local f; f="${1##*/}"
[ -z "$2" ] || f="${f%$2}"
echo "$f"
}
SELF=$(basename $0) SELF=$(basename $0)
VERSION='1.2' VERSION='1.2'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment