Browse code

Add finish time to log

Dmitrii Kashin authored on 10/10/2014 02:25:03
Showing 1 changed files
... ...
@@ -169,25 +169,21 @@ act_update () {
169 169
     cmd_update_mirrors
170 170
     cmd_create_snapshots
171 171
     cmd_update_publications
172
-    exit 0
173 172
 }
174 173
 
175 174
 act_create () {
176 175
     cmd_update_mirrors
177 176
     cmd_create_snapshots
178 177
     cmd_create_publications
179
-    exit 0
180 178
 }    
181 179
 
182 180
 act_clear () {
183 181
     cmd_drop_publications
184 182
     cmd_drop_snapshots
185
-    exit 0
186 183
 }
187 184
 
188 185
 act_test () {
189 186
     # this function is a sandbox for experiments
190
-    exit 0
191 187
 }
192 188
 
193 189
 ## Runtime:
... ...
@@ -210,12 +206,12 @@ case "$ACTION" in
210 210
     clear)
211 211
 	act_clear;;
212 212
     help)
213
-	usage; exit 0;;
213
+	usage;;
214 214
 esac
215 215
 
216
-# Default behaviour
217
-logger "And immediately finished! =)"
218
-exit 2
216
+logger "Script $SCRIPT's finished at $(LANG=C date)"
217
+
218
+exit 0
219 219
 
220 220
 # [1] https://github.com/smira/aptly.git
221 221
 # [2] http://www.gnu.org/licenses/gpl-2.0.html