From 45b9c85efa5497a837608e6e1688101219780d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Wed, 16 Feb 2022 13:03:04 +0100 Subject: [PATCH] fix mv erroring: use sed instead --- init.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.sh b/init.sh index 8781009..4547d2c 100755 --- a/init.sh +++ b/init.sh @@ -43,8 +43,7 @@ rm init.sh config README.md LICENSE rm -rf .git # move template files into this directory -mv template/* . -mv template/.* . +ls -a template | sed -r '/^\.+$/'d | xargs -I '{}' mv template/'{}' . rmdir template # Rename files