Last change
on this file since 2829 was
2823,
checked in by andersk, 8 years ago
|
rpm-master.sh, rpmlist.sh: Improve shell hygiene
|
-
Property svn:executable set to
*
|
File size:
287 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | set -eu |
---|
3 | |
---|
4 | export LC_ALL=C |
---|
5 | |
---|
6 | copyTo='/mit/scripts/cron_scripts/rpm-sync/' |
---|
7 | packages=$(mktemp --tmpdir rpmlist.XXXXXX) |
---|
8 | rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | sort | uniq > "$packages" |
---|
9 | |
---|
10 | host=$(hostname) |
---|
11 | extension='.rpmlist' |
---|
12 | file="$copyTo/$host$extension" |
---|
13 | mv "$packages" "$file" |
---|
Note: See
TracBrowser
for help on using the repository browser.