Skip to content

Commit

Permalink
Merge pull request #2 from jaymecd/avoid_coreutils
Browse files Browse the repository at this point in the history
use python to readlink instead of coreutils
  • Loading branch information
pavelsource authored Jul 19, 2018
2 parents f42cdb4 + fe44763 commit 356432d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Formula/sceptrefun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class Sceptrefun < Formula
cellar :any_skip_relocation
end

depends_on "coreutils"

def install
bin.install "sceptrefun"
prefix.install "assets"
Expand Down
8 changes: 6 additions & 2 deletions sceptrefun
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash

BASEDIR=$(cd "$(dirname "$(dirname "$(greadlink -f $0)")")" && pwd)
realpath() {
python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"
}

BASEDIR="$(dirname "$(dirname "$(realpath "$0")")")"

SCEPTRE_SUCCESS="$BASEDIR/assets/war3_jobdone.mp3"
SCEPTRE_UPGRADE_STACK="$BASEDIR/assets/war3_jobdone.mp3"
Expand Down

0 comments on commit 356432d

Please sign in to comment.