[sysadmin-bin] install-module: also delete latest name of json file
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] install-module: also delete latest name of json file
- Date: Sat, 26 Mar 2011 13:42:24 +0000 (UTC)
commit 0ed3133c3e3ac8b574886ecf72cd8a8ddbdc23f6
Author: Olav Vitters <olav vitters nl>
Date: Sat Mar 26 14:42:19 2011 +0100
install-module: also delete latest name of json file
install-module | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/install-module b/install-module
index df98f87..6a048ac 100755
--- a/install-module
+++ b/install-module
@@ -87,6 +87,7 @@ MAJMIN=$(echo $VERSION | sed "s#\([[:digit:]]\+\.[[:digit:]]\+\).*#\1#")
LOCATION=$FTPROOT/sources/$MODULE/$MAJMIN
JSON=$FTPROOT/sources/$MODULE/$MODULE.json
JSON2=$FTPROOT/sources/$MODULE/info.json
+JSON3=$FTPROOT/sources/$MODULE/cache.json
URL="$URLROOT/sources/$MODULE/$MAJMIN/$FILENAME"
WHO="$(getent passwd $USER | cut -d : -f 5 | cut -d , -f 1 | sed 's, <.*,,')"
if [ -z "$WHO" ]; then
@@ -320,7 +321,7 @@ echo "
echo "done."
# Delete ftpadmin cache files
-rm -f -- "$JSON" "$JSON2"
+rm -f -- "$JSON" "$JSON2" "$JSON3"
#
# Send ftp-release-list email
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]