aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-01-25 20:22:09 +0100
committerVG <vg@devys.org>2016-01-25 20:22:09 +0100
commit40e78b0dfca1a1eff2112f46fb7236048e90d1f2 (patch)
treef207b4936313af7aa3328f3b6b9a851cd1a389fa
parente917bfd5f2f47465926017cfcad3b91af5b95d8f (diff)
downloadbulkrename-40e78b0dfca1a1eff2112f46fb7236048e90d1f2.tar.gz
bulkrename-40e78b0dfca1a1eff2112f46fb7236048e90d1f2.tar.bz2
bulkrename-40e78b0dfca1a1eff2112f46fb7236048e90d1f2.zip
Change interpretor to sh for more cross platform compatibility
-rwxr-xr-xbulkrename4
1 files changed, 2 insertions, 2 deletions
diff --git a/bulkrename b/bulkrename
index 733b87d..d86f7a8 100755
--- a/bulkrename
+++ b/bulkrename
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright Cédric Picard 2014 -- License WTFPL
# Inspired by Ranger's -- See https://github.com/hut/ranger
@@ -36,7 +36,7 @@ done > "${namebase}.sh"
if [ "$(stat --printf="%s" "${namebase}.sh")" -ne 0 ] ; then
"$EDITOR" "${namebase}.sh"
- bash "${namebase}.sh"
+ sh -e -- "${namebase}.sh"
fi
rm -r "$(dirname "${namebase}")"