From 78f3e559f3291d4071c9e9a8e8ffbe0311160d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Sat, 27 Aug 2022 17:08:49 -0700 Subject: [PATCH] fix: fix `printf` command when undoing initial commit --- ugit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ugit b/ugit index cc705d1..17ec722 100755 --- a/ugit +++ b/ugit @@ -64,7 +64,7 @@ undo_git_commit() { # This will not delete the files from your working directory if [[ "$last_commit" == "$initial_commit" ]]; then if git update-ref -d HEAD && git rm --cached -rf . > /dev/null 2>&1; then - printf "%s\nInitial commit: $initial_commit successfully undone. Commit state is clean." + printf "%s\n" "Initial commit: $initial_commit successfully undone. Commit state is clean." else perror "Error: Failed to revert initial commit" exit