From a274973ff3ec0a1ab5ecde5a63b1bb33996fecb4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 21 May 2023 17:46:48 +0000 Subject: realpath -> readlink I have an exteremely retarded work machine which bundles its own realpath for no reason. A quick fix is to use readlink instead. --- links-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'links-update') diff --git a/links-update b/links-update index 322cd49..0d0630c 100755 --- a/links-update +++ b/links-update @@ -25,7 +25,7 @@ shopt -s lastpipe script_name="$( basename -- "${BASH_SOURCE[0]}" )" readonly script_name -script_path="$( realpath --canonicalize-existing -- "${BASH_SOURCE[0]}" )" +script_path="$( readlink --canonicalize-existing -- "${BASH_SOURCE[0]}" )" readonly script_path script_dir="$( dirname -- "$script_path" )" readonly script_dir -- cgit v1.2.3 From 89159d00dd4449d9e503495607f2c0a381902211 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 21 May 2023 20:33:48 +0200 Subject: move comments from links-update to README --- links-update | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'links-update') diff --git a/links-update b/links-update index 0d0630c..c95530d 100755 --- a/links-update +++ b/links-update @@ -5,18 +5,6 @@ # For details, see https://github.com/egor-tensin/config-links. # Distributed under the MIT License. -# This script relies on the availability of native symlinks. -# Those are indeed supported by NTFS, but require Administrator privileges for -# creation. -# It likely won't bother you as long as you don't use the functions defined in -# this file. -# In any case, you will see `ln` complaining about some access being denied in -# case something goes wrong. -# -# Remember that in order to force `ln` to use native NTFS symlinks, your -# `CYGWIN` Windows environment variable value **must** include either -# `winsymlinks:native` or `winsymlinks:nativestrict`! - # usage: ./links-update [-h|--help] [-d|--database PATH] [-s|--shared-dir DIR] [-m|--mode MODE] [-n|--dry-run] set -o errexit -o nounset -o pipefail -- cgit v1.2.3