Skip to content

Commit

Permalink
Use safer temp diretory for OBS prepare source script
Browse files Browse the repository at this point in the history
  • Loading branch information
G10h4ck committed Feb 11, 2019
1 parent 3f2a1d5 commit d7ecc26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_scripts/OBS/prepare_source_tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 15,7 @@ function define_default_value()
}

define_default_value GIT_DIR "${HOME}/Development/rs-develop/.git"
define_default_value WORK_DIR "/tmp/"
define_default_value WORK_DIR "$(mktemp --directory)/"

ORIG_DIR="$(pwd)"

Expand All @@ -39,4 39,5 @@ cat RetroShare/Source_Version
md5sum RetroShare.tar.gz
wc -c RetroShare.tar.gz
mv RetroShare.tar.gz "${ORIG_DIR}/RetroShare.tar.gz"
rm -rf "${WORK_DIR}"

0 comments on commit d7ecc26

Please sign in to comment.