summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-09-14 11:10:40 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:15 -0600
commit1aae71a1c7365d56aa6b0549bde6e8af07513f5f (patch)
treeac2ff3b3c5448172f958fb1cdaaf3f8b6920319d
parent941747dd168338cac09532eb8ce02105b52bed72 (diff)
replace all uses of tempfile(1) with mktemp(1) in shell scripts
-rw-r--r--plugins/repo/commit.d.sh2
-rw-r--r--plugins/repo/commit.sh2
-rw-r--r--plugins/repo/get.d.sh2
-rw-r--r--plugins/repo/get.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/plugins/repo/commit.d.sh b/plugins/repo/commit.d.sh
index 41715ea..e5d2456 100644
--- a/plugins/repo/commit.d.sh
+++ b/plugins/repo/commit.d.sh
@@ -23,7 +23,7 @@ ver='0.7.3'
# commit.d DIRNAME
dir="$1"
-tmp=`tempfile`
+tmp=`mktemp`
cd "$dir"
for file in *; do
diff --git a/plugins/repo/commit.sh b/plugins/repo/commit.sh
index f76324e..7ee5934 100644
--- a/plugins/repo/commit.sh
+++ b/plugins/repo/commit.sh
@@ -31,7 +31,7 @@ fi
out "+$type `pwd`/$file"
ret=`"$RVS" commit.$type "$file"`
-tmp=`tempfile`
+tmp=`mktemp`
cat << __EOF__ > "$tmp"
name:$file
hash:$ret
diff --git a/plugins/repo/get.d.sh b/plugins/repo/get.d.sh
index 46f8fd0..816cd31 100644
--- a/plugins/repo/get.d.sh
+++ b/plugins/repo/get.d.sh
@@ -25,7 +25,7 @@ ver='0.7.3'
id="$1"
dir="$2"
-tmp=`tempfile`
+tmp=`mktemp`
"$RVS" get.f "$id" "$tmp"
#install -d "$dir"
diff --git a/plugins/repo/get.sh b/plugins/repo/get.sh
index 53894cf..583428a 100644
--- a/plugins/repo/get.sh
+++ b/plugins/repo/get.sh
@@ -23,7 +23,7 @@ source "$libexecdir/lib/stdio"
# get ID [FILE]
id="$1"
-tmp=`tempfile`
+tmp=`mktemp`
"$RVS" get.f "$id" "$tmp"
type="`sed -n 's/^type://p' "$tmp"`"
file="${2-`sed -n 's/^name://p' "$tmp"`}"