]> piware.de Git - bin.git/commitdiff
rename-photos: add support for different starting number than 1
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 8 Oct 2015 05:25:49 +0000 (07:25 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 8 Oct 2015 05:25:49 +0000 (07:25 +0200)
rename-photos

index 20ff4316ec4a1922dda34090c4b8cc138a228d20..eba8c0b37127201ff9af975a0209f6cd6f5e2c85 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-num=1
+num=${1:-1}
 
 if [ -n "$DEBUG" ]; then
     PREFIX=echo