aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbulkrename2
1 files changed, 1 insertions, 1 deletions
diff --git a/bulkrename b/bulkrename
index 88cb363..b030fa4 100755
--- a/bulkrename
+++ b/bulkrename
@@ -34,8 +34,8 @@ sed -i -- 's/\([\\"$`]\)/\\\1/g;' "${namebase}.1" "${namebase}.2"
| xargs -d"\n" -L2 echo 'mv -i --') \
> "${namebase}.sh"
+if [ "$(wc -c < "${namebase}.sh")" -ne 0 ] ; then
-if [ "$(stat --printf="%s" "${namebase}.sh")" -ne 0 ] ; then
"$EDITOR" "${namebase}.sh"
sh -e -- "${namebase}.sh"
echo "bulkrename is done"