File: update_files.sh

package info (click to toggle)
nagios-plugins-contrib 24.20190301
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,944 kB
  • sloc: perl: 36,804; sh: 13,006; python: 2,549; php: 593; lex: 582; makefile: 473; 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