Skip to content

Commit

Permalink
change: remove realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Oct 30, 2023
1 parent 87ad598 commit 0957d96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
- name: Install realpath
if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install coreutils
- name: Build
run: make
- name: Test
Expand Down
4 changes: 2 additions & 2 deletions tests/run
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ORIGINAL_DIR="$(pwd)"
SCRIPT_DIR="$(dirname "$0")"

# Get the absolute path to the given binary
IMGCAT="$(realpath "$1")"
IMGCAT="$(cd "$(dirname -- "$1")" >/dev/null && pwd -P)/$(basename -- "$1")"
ANY_IMAGE=img/1px_256.png

ANSI_RED="$(tput setaf 1)"
Expand Down Expand Up @@ -152,7 +152,7 @@ _add_failure() {
}

# Can't specify command line redirection in assert commands,
# so use this to do it for use.
# but this will do it:
pipe() {
local filename="$1"; shift;
<"$filename" "$@"
Expand Down

0 comments on commit 0957d96

Please sign in to comment.