aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-10-04 19:26:48 +0300
committerCem Keylan <cem@ckyln.com>2021-10-04 19:26:48 +0300
commit5a3d696465d215fbea01a70341d6d0eb42e72268 (patch)
treed291556ea577c88de769233518d913aa6f97f4eb
parent274c358df557f399e4a4394c6cc8c14da6c33762 (diff)
downloadimv-master.tar.gz
imv-dir: use shell substitution instead of dirnameHEADmaster
-rwxr-xr-xcontrib/imv-dir2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/imv-dir b/contrib/imv-dir
index d9fb46f..efe134c 100755
--- a/contrib/imv-dir
+++ b/contrib/imv-dir
@@ -1,2 +1,2 @@
#!/bin/sh
-exec imv -n "$1" "$(dirname "$1")"
+exec imv -n "$1" "${1%/*}"