Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change strategy for detecting current directory

Allows fleet to be run via sudo/su.

Useful when creating an upstart job without having to run fleet as root.
  • Loading branch information...
commit 66a6e8f4ce6f2e30cca1976953d8db2317683561 1 parent 797e115
@davidbanham davidbanham authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/
2  bin/
@@ -1,5 +1,5 @@
-dirname=$(dirname "$_")
+dirname="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if test -z "$*"; then
Please sign in to comment.
Something went wrong with that request. Please try again.