From 59f669e17d234a3d0c8743df54eb263bacf5ae90 Mon Sep 17 00:00:00 2001 From: Hyesung Oh Date: Tue, 21 Jun 2022 02:00:40 +0900 Subject: [PATCH] fix: run exec with silent --- dist/2_Clone_Project.js | 2 +- source/2_Clone_Project.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/2_Clone_Project.js b/dist/2_Clone_Project.js index 8c26ab3..9f0cd48 100644 --- a/dist/2_Clone_Project.js +++ b/dist/2_Clone_Project.js @@ -35,7 +35,7 @@ var REPO_URL = 'https://github.com/hyesungoh/comet-land'; function CloneProject() { var _a = (0, react_1.useState)(true), isLoading = _a[0], setIsLoading = _a[1]; (0, react_1.useEffect)(function () { - shelljs_1.default.exec("git clone ".concat(REPO_URL), function () { + shelljs_1.default.exec("git clone ".concat(REPO_URL), { silent: true }, function () { setIsLoading(false); }); }, []); diff --git a/source/2_Clone_Project.tsx b/source/2_Clone_Project.tsx index 0e23d51..fe97a29 100644 --- a/source/2_Clone_Project.tsx +++ b/source/2_Clone_Project.tsx @@ -11,7 +11,7 @@ export default function CloneProject() { const [isLoading, setIsLoading] = useState(true); useEffect(() => { - shell.exec(`git clone ${REPO_URL}`, () => { + shell.exec(`git clone ${REPO_URL}`, { silent: true }, () => { setIsLoading(false); }); }, []);