From ce38c3d4e2d24d3ea104f17d007d47086e6b2e20 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Fri, 30 Mar 2018 10:13:48 -0500 Subject: [PATCH] use path queries compatible with old fish --- README.md | 2 +- bin/install | 6 +++--- bin/install.sha256 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 999fe42..c20a43d 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ fish install --path=~/.local/share/omf --config=~/.config/omf You can verify the integrity of the downloaded installer by verifying the script against [this checksum](bin/install.sha256): ``` -4dd63d6a974a61c100cbe145ae46eac69edce985f20b061f353cc399b36c7587 install +06844ca6876fac0ea949c8089d8c5f71e14b69d2bb1dc41f1d0677250a1c62e1 install ``` You can also install Oh My Fish with Git or with an offline source tarball downloaded from the [releases page][releases]: diff --git a/bin/install b/bin/install index 8df08a5..c807ef1 100755 --- a/bin/install +++ b/bin/install @@ -501,7 +501,7 @@ end # Gets the version of Git installed. function get_git_version - type -f -q git + type -f git > /dev/null ^ /dev/null and command git --version | command cut -d' ' -f3 end @@ -561,7 +561,7 @@ function assert_cmds set -l cmds awk basename cp cut date dirname env fish fold head mkdir mv readlink rm sed sort tar tr which for cmd in $cmds - type -f -q $cmd + type -f $cmd > /dev/null ^ /dev/null or abort "Missing required command: $cmd" debug "Command '$cmd' is "(which $cmd) @@ -582,7 +582,7 @@ end # A link-following `which` wrapper. function which - if type -q realpath + if type realpath > /dev/null ^ /dev/null realpath (command which $argv) else command readlink (command which $argv) diff --git a/bin/install.sha256 b/bin/install.sha256 index 1c7a2ac..ff8d904 100644 --- a/bin/install.sha256 +++ b/bin/install.sha256 @@ -1 +1 @@ -4dd63d6a974a61c100cbe145ae46eac69edce985f20b061f353cc399b36c7587 install +06844ca6876fac0ea949c8089d8c5f71e14b69d2bb1dc41f1d0677250a1c62e1 install