View Single Post
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#8
Originally Posted by aspidites View Post
/usr/bin/aptly contains the following:
Code:
!#/bin/bash

exec /usr/lib/python2.5/site-packages/aptly/aptly.py $@
You want this to be:

Code:
#!/bin/sh

exec /usr/lib/python2.5/site-packages/aptly/aptly.py "$@"
  1. Note "#!" rather than "!#"
  2. bash vs. sh already mentioned
  3. "$@" will ensure that any parameters containing spaces will be quoted properly.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following 3 Users Say Thank You to Jaffa For This Useful Post: