Rename sync script for WebApp_Aktienberater

This commit is contained in:
2026-05-18 18:16:19 +02:00
parent 972af8d608
commit 6d20ae0a01
2 changed files with 12 additions and 11 deletions
@@ -6,7 +6,7 @@ STYLEGUIDE_REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
SOURCE_CSS="$STYLEGUIDE_REPO_ROOT/styleguide.css"
VERSION_FILE="$STYLEGUIDE_REPO_ROOT/VERSION"
PORTAL_REPO_PATH=""
PORTAL_REPO_PATH="/Users/mathias/Documents/Dokumente Chouchou/Codebases/WebApp_Aktienberater"
PORTAL_CSS_REL="public/assets/styleguide.upstream.css"
PORTAL_META_REL="public/assets/styleguide.upstream.meta.json"
COMMIT_IN_PORTAL="false"
@@ -14,10 +14,10 @@ COMMIT_IN_PORTAL="false"
usage() {
cat <<USAGE
Usage:
$(basename "$0") --portal-repo <path> [--commit-portal]
$(basename "$0") [--portal-repo <path>] [--commit-portal]
Options:
--portal-repo <path> Absolute path to portal repository root.
--portal-repo <path> Optional override for portal repository root.
--commit-portal Create commit in portal repo after sync.
-h, --help Show this help.
USAGE
@@ -45,12 +45,6 @@ while [[ $# -gt 0 ]]; do
esac
done
if [[ -z "$PORTAL_REPO_PATH" ]]; then
echo "Missing required argument: --portal-repo" >&2
usage
exit 1
fi
if [[ ! -f "$SOURCE_CSS" ]]; then
echo "Source CSS not found: $SOURCE_CSS" >&2
exit 1