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-11 16:27:32 (GMT)
committer Kévin Raymond <shaiton@fedoraproject.org>2013-05-11 16:27:32 (GMT)
commit3b07945dc6ff3ea5d6f19e39bc8c7aa034fa982f (patch)
tree95dbd284eda8604fb1e7bfecc7a2e05be9e78992
parent77e13b4b73f6d20cb8f07ad365285a3870f7a9d4 (diff)
moving datastore saves in a new datastor dir
-rwxr-xr-xparse.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.sh b/parse.sh
index 6a951e7..82ec492 100755
--- a/parse.sh
+++ b/parse.sh
@@ -29,8 +29,8 @@ do
if [ $? -eq 0 ]
then
out="$home/out/$folder"
- mkdir -p $out
- [[ -f home/olpc/.sugar/default/datastore/nickname ]] && cp home/olpc/.sugar/default/datastore/nickname $out
+ mkdir -p $out/datastore
+ [[ -f home/olpc/.sugar/default/datastore/nickname ]] && cp home/olpc/.sugar/default/datastore/nickname $out/datastore
int=1
rm $datafile 2>/dev/null
@@ -55,7 +55,7 @@ do
cat $mime |grep -q video/ogg && ext="ogg"
cat $mime |grep -q opendocument && ext="odf"
[[ $ext == "unknown" ]] && err_m "Format unknown: $out"
- cp -a ../data $out/$int.$ext
+ cp -a ../data $out/datastore/$int.$ext
int=$((int + 1))
else
err_d "mime type file does not exists: $PWD"