Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Merge requests
!8
Fix bend_symlinks script for empty space
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Fix bend_symlinks script for empty space
f-bend-symlinks-with-ws
into
dev
Overview
3
Commits
3
Pipelines
3
Changes
3
3 unresolved threads
Hide all comments
Merged
Timm Fitschen
requested to merge
f-bend-symlinks-with-ws
into
dev
4 years ago
Overview
3
Commits
3
Pipelines
3
Changes
3
3 unresolved threads
Hide all comments
Please see my annotations.
fixes
#125 (closed)
Edited
4 years ago
by
Timm Fitschen
0
0
Merge request reports
Viewing commit
5c81cccb
Prev
Next
Show latest version
3 files
+
14
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Verified
5c81cccb
Fix bend_symlinks script for empty space
· 5c81cccb
Timm Fitschen
authored
4 years ago
misc/bend_symlinks/src/main.sh
+
3
−
1
View file @ 5c81cccb
Edit in single-file editor
Open in Web IDE
Show full file
@@ -66,8 +66,10 @@ if [ $IS_MOVE -eq 1 ] ; then
REPLACEMENT
=
$(
new_dir
"
$REPLACEMENT
"
)
fi
set
-o
noglob
for
syml
in
$(
find
-P
$(
realpath
$FILE_SYSTEM_ROOT
)
-type
l
)
;
do
find
-P
$(
realpath
$FILE_SYSTEM_ROOT
)
-type
l
-print0
|
while
ISF
=
read
-r
-d
''
syml
;
do
OLD_TARGET
=
$(
realpath
-m
"
$syml
"
|
sed
-n
-r
"/
$REGEX_OLD
/p"
)
if
[
-z
"
$OLD_TARGET
"
]
;
then
# filter non matching
Loading