texlive[68036] Master/tlpkg/bin/deref-symlinks: missing x bit;
commits+karl at tug.org
commits+karl at tug.org
Wed Aug 23 23:11:54 CEST 2023
Revision: 68036
http://tug.org/svn/texlive?view=revision&revision=68036
Author: karl
Date: 2023-08-23 23:11:53 +0200 (Wed, 23 Aug 2023)
Log Message:
-----------
missing x bit; deref-symlinks arg parsing
Modified Paths:
--------------
trunk/Master/tlpkg/bin/deref-symlinks
Modified: trunk/Master/tlpkg/bin/deref-symlinks
===================================================================
--- trunk/Master/tlpkg/bin/deref-symlinks 2023-08-23 20:26:25 UTC (rev 68035)
+++ trunk/Master/tlpkg/bin/deref-symlinks 2023-08-23 21:11:53 UTC (rev 68036)
@@ -5,8 +5,9 @@
# Replace symlinks to files with the actual files.
# Symlinks to anything else are not touched.
-if test "x$1" = --save-links; then
+if test x"$1" = x--save-links; then
savelinks=true
+ shift
else
savelinks=false
fi
@@ -16,7 +17,7 @@
test -f "$f" || continue # skip links to anything but regular files
cp -p --dereference "$f" "$f".file # expand link
- mv "$f" "$f".link # move link out of the way
- mv -v "$f".file "$f" # replace with regular file
- $savelinks || rm "$f".link # remove link unless keeping
+ mv -v "$f" "$f".link # move link out of the way
+ mv -v "$f".file "$f" # replace with regular file
+ $savelinks || rm "$f".link # remove link unless keeping
done
More information about the tex-live-commits
mailing list.