Skip to content

HTTPS clone URL

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/command.sh
View
2  bin/command.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-dirname=$(dirname "$_")
+dirname="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if test -z "$*"; then
$dirname/fleet-help
Please sign in to comment.
Something went wrong with that request. Please try again.