[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c8de75e 7/7: Show symlink in a few of its man
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c8de75e 7/7: Show symlink in a few of its many guises |
Date: |
Thu, 16 Nov 2017 11:09:56 -0500 (EST) |
branch: master
commit c8de75e7afbccd0d3c46c54578ebf01d03aff169
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Show symlink in a few of its many guises
---
check_git_setup.sh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/check_git_setup.sh b/check_git_setup.sh
index 949ffb9..ba67ad4 100755
--- a/check_git_setup.sh
+++ b/check_git_setup.sh
@@ -59,9 +59,14 @@ case "$(readlink -f .git/hooks)" in
;;
esac
-printf " 'readlink -f .git/hooks':\n"
-printf " expected '%s'\n" "$PWD"/hooks
-printf " observed '%s'\n" "$(readlink -f .git/hooks)"
+# So many readlink options, so little time...just use them all.
+
+printf "testing .git/hooks symlink:\n"
+printf " readlink : '%s'\n" "$(readlink .git/hooks)"
+printf " readlink -e: '%s'\n" "$(readlink -e .git/hooks)"
+printf " readlink -f: '%s'\n" "$(readlink -f .git/hooks)"
+printf " readlink -m: '%s'\n" "$(readlink -m .git/hooks)"
+printf " expected : '%s'\n" "$PWD"/hooks
# Verify that .git/hooks is a symlink to the repository's hooks/
# directory, and that it contains an executable pre-commit hook.
- [lmi-commits] [lmi] master updated (2a7f972 -> c8de75e), Greg Chicares, 2017/11/16
- [lmi-commits] [lmi] master 0b4d84b 2/7: Prefer $PWD to $(pwd), Greg Chicares, 2017/11/16
- [lmi-commits] [lmi] master bf52d55 6/7: Require a valid pre-commit hook to exist, Greg Chicares, 2017/11/16
- [lmi-commits] [lmi] master 68cc423 4/7: Regularize readlink options, Greg Chicares, 2017/11/16
- [lmi-commits] [lmi] master f92ba83 3/7: Allow backup of old .git/hooks to fail, Greg Chicares, 2017/11/16
- [lmi-commits] [lmi] master 1e1716f 5/7: Assert rather than assume, Greg Chicares, 2017/11/16
- [lmi-commits] [lmi] master 030f1c5 1/7: Fix incorrect command order, Greg Chicares, 2017/11/16
- [lmi-commits] [lmi] master c8de75e 7/7: Show symlink in a few of its many guises,
Greg Chicares <=