From 390f6e8d0608d5c4b97ca2583a4632644ae8738d Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 3 Jun 2016 08:31:32 +0200 Subject: [PATCH] Fix links (#4) * Updated gitlab-conversion.py * Fix link --- gitlab-conversion.py | 15 +++++++++------ topics/custom-attributes.adoc | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gitlab-conversion.py b/gitlab-conversion.py index c729efa98c..630665f150 100755 --- a/gitlab-conversion.py +++ b/gitlab-conversion.py @@ -32,12 +32,15 @@ targetdir = 'target' if len(sys.argv) > 1: targetdir = sys.argv[1] -shutil.rmtree(os.path.join(targetdir, 'images'), ignore_errors=True) -shutil.rmtree(os.path.join(targetdir, 'keycloak-images'), ignore_errors=True) -shutil.rmtree(os.path.join(targetdir, 'rhsso-images'), ignore_errors=True) -shutil.copytree('images',os.path.join(targetdir, 'images')) -shutil.copytree('keycloak-images',os.path.join(targetdir, 'keycloak-images')) -shutil.copytree('rhsso-images',os.path.join(targetdir, 'rhsso-images')) +if os.path.exists(targetdir): + shutil.rmtree(targetdir) + +if os.path.isdir('images'): + shutil.copytree('images',os.path.join(targetdir, 'images')) +if os.path.isdir('keycloak-images'): + shutil.copytree('keycloak-images',os.path.join(targetdir, 'keycloak-images')) +if os.path.isdir('rhsso-images'): + shutil.copytree('rhsso-images',os.path.join(targetdir, 'rhsso-images')) tmp = os.path.join(targetdir, 'topics') if not os.path.exists(tmp): diff --git a/topics/custom-attributes.adoc b/topics/custom-attributes.adoc index a6a4bf9d28..a0db8c089a 100755 --- a/topics/custom-attributes.adoc +++ b/topics/custom-attributes.adoc @@ -1,7 +1,7 @@ == Custom User Attributes You can add custom user attributes to the registration page and account management console with a custom theme. This chapter describes how to add attributes -to a custom theme, but you should refer to the link:themes.html[Themes] chapter on how to create a custom theme. +to a custom theme, but you should refer to the <> chapter on how to create a custom theme. === Registration Page