File: update_files.sh

package info (click to toggle)
nagios-plugins-contrib 21.20170222
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,764 kB
  • ctags: 1,895
  • sloc: perl: 36,233; sh: 11,977; python: 2,435; php: 593; lex: 582; makefile: 456; ansic: 281; ruby: 149; awk: 81
file content (10 lines) | stat: -rwxr-xr-x 229 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

for i in nagios-check-libs nagios-check-libs.conf; do
    tmp=`mktemp`
    if wget -O ${tmp} "http://svn.noreply.org/svn/weaselutils/trunk/${i}"; then
        mv ${tmp} ${i}
    else
        rm -f ${tmp}
    fi
done