repo-add: fix exit on mktemp failure
This commit is contained in:
parent
37dae721d3
commit
ffde12cebd
1 changed files with 3 additions and 3 deletions
|
@ -584,9 +584,9 @@ if [[ $cmd != "repo-add" && $cmd != "repo-remove" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
tmpdir=$(mktemp -d "${TMPDIR:-/tmp}/repo-tools.XXXXXXXXXX") || (\
|
||||
error "$(gettext "Cannot create temp directory for database building.")"; \
|
||||
exit 1)
|
||||
tmpdir=$(mktemp -d "${TMPDIR:-/tmp}/repo-tools.XXXXXXXXXX") || {
|
||||
error "$(gettext "Cannot create temp directory for database building.")";
|
||||
exit 1; }
|
||||
|
||||
for repo in "db" "files"; do
|
||||
mkdir "$tmpdir/$repo"
|
||||
|
|
Loading…
Add table
Reference in a new issue