Note that there are some explanatory texts on larger screens.

plurals
  1. PObash script doesn't finish
    text
    copied!<p>I am trying to generate docsets for Dash following these instructions: <a href="http://kapeli.com/docsets" rel="nofollow">http://kapeli.com/docsets</a>. The problem is, that the script doesn't continue after the wget and doesn't throw any errors. Everything works fine when I copy the script into the Terminal.</p> <p>I'm using MacOS 10.8.4 and the default bash.</p> <pre><code>#!/usr/bin/env bash set -e mkdir -p $1.docset/Contents/Resources/Documents/ wget -rkp -l3 -np -nH --cut-dirs=1 --directory-prefix="./"$1".docset/Contents/Resources/Documents/" $2 echo '&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt; &lt;dict&gt; &lt;key&gt;CFBundleIdentifier&lt;/key&gt; &lt;string&gt;'$1'&lt;/string&gt; &lt;key&gt;CFBundleName&lt;/key&gt; &lt;string&gt;'$1'&lt;/string&gt; &lt;key&gt;DocSetPlatformFamily&lt;/key&gt; &lt;string&gt;'$1'&lt;/string&gt; &lt;key&gt;isDashDocset&lt;/key&gt; &lt;true/&gt; &lt;/dict&gt; &lt;/plist&gt;' &gt; $1.docset/Contents/Info.plist touch $1.docset/Contents/Resources/docSet.dsidx sqlite3 $1.docset/Contents/Resources/docSet.dsidx " CREATE TABLE searchIndex(id INTEGER PRIMARY KEY, name TEXT, type TEXT, path TEXT); CREATE UNIQUE INDEX anchor ON searchIndex (name, type, path); INSERT INTO searchIndex (name, type, path) VALUES ('index', 'Guide', 'index.html');" </code></pre> <p>Wget is getting quite a few 404 errors and returns exit status 8 (<code>echo $?</code>). The actual question is solved then, however, I still don't know what to do about it: removing <code>set -e</code> works, fine but doesn't feel right.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload