Skip to content

Commit 105d533

Browse files
committed
Merge pull request #8 from sector-f/master
Fixed shebang and file naming
2 parents a550355 + ffacec4 commit 105d533

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

polyfy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env sh
1+
#! /usr/bin/env bash
22
#
33
# Copyright (c) 2015
44
#
@@ -170,8 +170,10 @@ filename=$(basename ${file_f%.*})
170170
image_h=$(identify -format "%h" $file_f)
171171
image_w=$(identify -format "%w" $file_f)
172172
format=$(basename ${file_f##*.})
173+
dup_c=""
173174

174175
[[ -e $directory/$filename-polyfy.$format ]] && {
176+
dup_c=2
175177
while [[ -e $directory/$filename-polyfy"$dup_c".$format ]]; do
176178
let dup_c++
177179
done

0 commit comments

Comments
 (0)