Skip to content

Commit

Permalink
add default directory for mktemp
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Feb 9, 2015
1 parent f6b160a commit 6e5fad4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/barelease
Expand Up @@ -36,6 +36,9 @@ remove=false
we_started_gpg=false
we_started_ssh=false

# default
MKTEMPDIR="/tmp"

error_handler() {
err 'something bad happened.'
exit 1
Expand Down Expand Up @@ -134,7 +137,7 @@ parse_args() {
use_existing_sigs=true
;;
-t)
mktempdir=$2
MKTEMPDIR=$2
shift
;;
-h)
Expand Down Expand Up @@ -244,7 +247,7 @@ update_feed_info() {
}

do_release() {
tmp=$(mktemp -d $mktempdir/barelease.XXXXXXXX)
tmp=$(mktemp -d $MKTEMPDIR/barelease.XXXXXXXX)
mkdir -p "$tmp"/{i686,x86_64,armv6h,armv7h}

if ! $remove ; then
Expand Down

1 comment on commit 6e5fad4

@amrouche091
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Please sign in to comment.