From: martin f. krafft Date: Thu, 25 Oct 2007 21:44:41 +0000 (+0200) Subject: replace basename call with shell construct X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/17e94a28e3d140ba3f32c6e90ddec3daee87fd12?ds=sidebyside replace basename call with shell construct Use ${PWD##*/} instead of $(basename $PWD) --- diff --git a/mr b/mr index a8d864f..c1ccaee 100755 --- a/mr +++ b/mr @@ -1083,7 +1083,7 @@ register = if [ -n "$1" ]; then cd "$1" fi - basedir="$(basename $PWD)" + basedir="${PWD##*/}" case "$(get_repo_type .)" in svn) url=$(LANG=C svn info . | grep -i ^URL: | cut -d ' ' -f 2)