add clear command before git clone

This commit is contained in:
2025-12-01 12:46:44 +00:00
parent eeaf51f816
commit e36eb55c40

View File

@@ -179,6 +179,7 @@ set_editor() {
if [[ -d "$NANO_DIR/.git" ]]; then
git -C "$NANO_DIR" pull --quiet
else
clear
git clone https://github.com/scopatz/nanorc.git "$NANO_DIR"
fi
if ! grep -q "include $NANO_DIR" "$NANORC" 2>/dev/null; then
@@ -287,6 +288,7 @@ EOF
if dialog --yesno "Soll ein Git-Repo geklont werden?" 10 60; then
repo_url=$(dialog --inputbox "Git-Repository-URL eingeben:" 10 60 3>&1 1>&2 2>&3) || return
if git clone "$repo_url" "$PROJECTS_DIR/$project_name"; then
clear
sed -i "s|^git_repo=.*|git_repo=$repo_url|" "$PROJECT_CONFIG_DIR/$project_name/config-file"
else
dialog --msgbox "Fehler beim Klonen des Git-Repos!" 10 60