Jump to content

Shell Scripts: Difference between revisions

+ Command not found
imported>Milahu
(+ Packaging example)
imported>Milahu
(+ Command not found)
Line 51: Line 51:
</syntaxHighlight>
</syntaxHighlight>


when the dependency <code>subversion</code> is missing, the script throws the error <code>svn: command not found</code>
<code>wrapProgram</code> will move the original script to <code>.github-downloader.sh-wrapped</code>


<code>wrapProgram</code> will move the original script to <code>.github-downloader.sh-wrapped</code>
=== Command not found ===
 
for example, the script throws the error <code>svn: command not found</code>, because the dependency <code>subversion</code> is missing.
 
when a command is missing, you can use <code>nix-locate</code> to find the package name. for example, the <code>stat</code> command:
 
<syntaxHighlight lang="console">
$ nix-locate bin/stat | grep 'bin/stat$'
coreutils.out                                        0 s /nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31/bin/stat
</syntaxHighlight>


== Posix Shell ==
== Posix Shell ==
Anonymous user