summaryrefslogtreecommitdiff
path: root/src/librefetch
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-01 17:21:52 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-01 17:24:53 -0400
commit14027570984112999aafacc0603d7843cd5a655f (patch)
tree585c764610ad71b00563a2f98ac5b21596648cc0 /src/librefetch
parent8ab3d92ccf278389721b1ae8ff42dffef0e066ab (diff)
bugfix [2/2]: librefetch: Fix SRCBUILD-to-SRCBUILD operation
Diffstat (limited to 'src/librefetch')
-rwxr-xr-xsrc/librefetch/librefetch3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index bba7df9..b0b538e 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -370,7 +370,8 @@ modified_pkgbuild() {
modified_srcbuild() {
local orig=$1
- local srcbuild="$(mktemp "${orig%/*}/${cmd}.XXXXXXXXXXX.SRCBUILD.to.SRCBUILD")"
+ local new
+ new="$(mktemp "${orig%/*}/${cmd}.XXXXXXXXXXX.SRCBUILD.to.SRCBUILD")"
sed -e '/PKGDEST=/d' -e '/PKGEXT=/d' < "$orig" > "$new"
printf '%s\n' "$new"
}