From ce9a9b1951cefbdf6b2df93b07eb9120295bec7a Mon Sep 17 00:00:00 2001 From: Francois Charette Date: Mon, 20 Jul 2009 09:47:08 -0700 Subject: Minor syntactic improvements in db-update * also added error msg for repo_lock in db-functions [Aaron: keep quotes around $WORKDIR] Signed-off-by: Aaron Griffin --- db-functions | 3 +++ 1 file changed, 3 insertions(+) (limited to 'db-functions') diff --git a/db-functions b/db-functions index 8111c6d..6d84d31 100644 --- a/db-functions +++ b/db-functions @@ -40,6 +40,9 @@ repo_lock () { #repo_lock repo-name arch exit 1 else /bin/touch "$LOCKFILE" + if [ ! -f "$LOCKFILE" ]; then + echo "error: could not create repo lock... something went wrong!" + fi set_umask fi } -- cgit v1.2.3-24-g4f1b