Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use /dev/shm if available to do line by line processing

  • Loading branch information...
commit b349377cf08ef795ad2a3829018b184e09a9eb1f 1 parent c9dcf4c
@dalingrin authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 pbfetch
View
9 pbfetch
@@ -356,8 +356,13 @@ checkVersion () {
for x in ${pkgName[@]}; do
curlArgs="$curlArgs$(echo "${url}$x ")"
done
-
- tempFile=$(mktemp --suffix=-pbfetch)
+
+ if [ -d "/dev/shm" ]; then
+ tempFile=$(mktemp -p /dev/shm --suffix=-pbfetch)
+ else
+ tempFile=$(mktemp --suffix=-pbfetch)
+ fi
+
curl -s ${curlArgs}| sed 's/{"type"/\n/g' | sed '/^$/d' >> $tempFile
echo "" >> $tempFile
Please sign in to comment.
Something went wrong with that request. Please try again.