Skip to content

Commit

Permalink
[Fix] Fix mktemp usage warning
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Oct 10, 2023
1 parent 2db8a80 commit 281386a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ echo "INFO: - files $FILES"

if [ "$APPEND" = false ] ; then
echo "INFO: *** CLEARING THE GRAPH ***"
TEMP_FILE=`tempfile`
TEMP_FILE=`mktemp --suffix -rdf4j-deploy-context-clear.rdf`
QUERY_PARAMS="context=$GRAPH"
if [ ! "$GRAPH" ]; then QUERY_PARAMS= ; fi
curl --netrc-file $NETRC_FILE $REPOSITORY_URL/statements?$QUERY_PARAMS -v -X DELETE &> $TEMP_FILE
Expand All @@ -86,7 +86,7 @@ echo "INFO: *** SENDING DATA ***"
for FILE in $FILES
do
echo INFO: " -- sending $FILE";
TEMP_FILE=`tempfile`
TEMP_FILE=`mktemp --suffix -rdf4j-deploy-context-send.rdf`
QUERY_PARAMS="context=$GRAPH"
if [ ! "$GRAPH" ]; then QUERY_PARAMS= ; fi

Expand All @@ -96,7 +96,7 @@ do
done;

echo "INFO: *** CHECKING ***"
TEMP_FILE=`tempfile`
TEMP_FILE=`mktemp --suffix -rdf4j-deploy-context-check.rdf`
GRAPH_SIZE=`curl --netrc-file $NETRC_FILE $REPOSITORY_URL/size 2> $TEMP_FILE`
echo "INFO: size of the new graph is $GRAPH_SIZE"

0 comments on commit 281386a

Please sign in to comment.