Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Raymond <shaiton@fedoraproject.org>2013-05-10 20:39:59 (GMT)
committer Kévin Raymond <shaiton@fedoraproject.org>2013-05-10 20:39:59 (GMT)
commit5968c8be4090ef023291a31a20aeace79e81da43 (patch)
treed366c6bc99410da3dad615e0bb1901660dc695e6
parentf310447677c8063e399c40fa90a6919a3662f462 (diff)
still have to see about errors
-rwxr-xr-xparse.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse.sh b/parse.sh
index 377c937..27dd666 100755
--- a/parse.sh
+++ b/parse.sh
@@ -1,6 +1,5 @@
#!/bin/bash
# run this on the backup directory
-set -x
datafile="data"
mime="mime_type"
@@ -53,7 +52,7 @@ do
cat $mime |grep -q text/plain && ext="txt"
cat $mime |grep -q text/x-python && ext="py"
cat $mime |grep -q video/ogg && ext="ogg"
- cp ../data $out/$int.$ext
+ cp -a ../data $out/$int.$ext
int=$((int + 1))
else
err_d "mime type file does not exists: $PWD"