summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-11-23 02:17:39 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2008-11-23 02:17:39 -0600
commit252e11f0e5a4eba7859108e0fb4bb3593819276f (patch)
treefa48e64f6cc793133910a0e1b9ad61565648e7b3 /db-update
parente27f2f70a4a6490abef64c66b7a74915f2d3e2e5 (diff)
Remove some harmless error messages
If add/del dirs exist, we try to fix it all up and it can error quite loudly Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update4
1 files changed, 3 insertions, 1 deletions
diff --git a/db-update b/db-update
index c76337a..1d2efa2 100755
--- a/db-update
+++ b/db-update
@@ -97,7 +97,9 @@ if [ -d "${stagedir}/add" ]; then
echo "Please delete staging/<reponame>/{add,del}"
echo " and ensure you are using the newest devtools"
echo "--------------------------------------------------"
- /bin/mv "${stagedir}/add/"* "$stagedir/"
+ if [ -e "${stagedir}/add/"* ]; then
+ /bin/mv "${stagedir}/add/"* "$stagedir/"
+ fi
fi
to_add=""