blob: ce4da0e2bc55e2a6a676ee191c8c8576ee8025ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-aq,v 1.2 2011/04/23 08:53:53 obache Exp $
--- Tools/faqwiz/move-faqwiz.sh.orig 2008-11-30 13:33:28.000000000 +0000
+++ Tools/faqwiz/move-faqwiz.sh
@@ -9,7 +9,7 @@
# blackjesus:~> ./move-faqwiz.sh 2\.1 3\.2
# Moving FAQ question 02.001 to 03.002
-if [ x$2 = x ]; then
+if [ $# -ne 2 ]; then
echo "Need 2 args: original_version final_version."
exit 2
fi
@@ -31,7 +31,7 @@ cut_n_pad $2 2 suffix2
if which tempfile >/dev/null; then
tmpfile=$(tempfile -d .)
elif [ -n "$RANDOM" ]; then
- tmpfile=tmp$RANDOM.tmp
+ tmpfile=tmp-$$-$RANDOM.tmp
else
tmpfile=tmp$$.tmp
fi
|