Create the self-extracting archive restore.sh
[backups/.git] / scripts / find-cmd.sh
index d9efb29b2a3ef011b82427ad865e0a909bc74831..51a37493c12ae29511e93e15e93beedaf0d4d76e 100755 (executable)
@@ -1,7 +1,9 @@
 #!/bin/sh
 
+[ $# == 1 ] || exit 1
+
 {
   for type in d f l; do
-    find . -type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS %CS %p\0"
+    find $1 -type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS 0 %p\0"
   done
 }