Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
[ci-skip] Fixed a bug with zep where using from vendor/bin wa…
Browse files Browse the repository at this point in the history
…s not working.
  • Loading branch information
hassankhan committed Jan 26, 2014
1 parent c5406d5 commit 096ae08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/zep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php

// Require stuff
require(__DIR__ . "/../vendor/autoload.php");
require(realpath(getcwd() . "/vendor/autoload.php"));

$zep = new Zepto\Console($argv);

Expand Down Expand Up @@ -126,7 +126,7 @@ elseif ($zep->get("option") === "new") {
$title = ucfirst($zep->prompt("Title:"));
$desc = $zep->prompt("Description: (Optional)");
$date = (!$zep->prompt("Date: (Leave empty for today's date)"))
? $date = date('d m Y')
? $date = date("d m Y")
: $date;

// DRY, innit?
Expand All @@ -147,6 +147,6 @@ function check_current_directory()
return;
}
else {
throw new Exception("No content or plugins directory found, please run zep init");
throw new \Exception("No content or plugins directory found, please run zep init");
}
}

0 comments on commit 096ae08

Please sign in to comment.