add clear command before git clone
This commit is contained in:
@@ -179,6 +179,7 @@ set_editor() {
|
|||||||
if [[ -d "$NANO_DIR/.git" ]]; then
|
if [[ -d "$NANO_DIR/.git" ]]; then
|
||||||
git -C "$NANO_DIR" pull --quiet
|
git -C "$NANO_DIR" pull --quiet
|
||||||
else
|
else
|
||||||
|
clear
|
||||||
git clone https://github.com/scopatz/nanorc.git "$NANO_DIR"
|
git clone https://github.com/scopatz/nanorc.git "$NANO_DIR"
|
||||||
fi
|
fi
|
||||||
if ! grep -q "include $NANO_DIR" "$NANORC" 2>/dev/null; then
|
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
|
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
|
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
|
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"
|
sed -i "s|^git_repo=.*|git_repo=$repo_url|" "$PROJECT_CONFIG_DIR/$project_name/config-file"
|
||||||
else
|
else
|
||||||
dialog --msgbox "Fehler beim Klonen des Git-Repos!" 10 60
|
dialog --msgbox "Fehler beim Klonen des Git-Repos!" 10 60
|
||||||
|
|||||||
Reference in New Issue
Block a user