Skip to content

Commit 652b52c

Browse files
committed
Change script format
1 parent 449b3b8 commit 652b52c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/templates/cp.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ export default class CpTemplate implements Template {
3838
#!/bin/bash
3939
$FILE="${source_file}"
4040
$RELATIVE_DEST="${dest_path}"
41+
$COMMIT_MESSAGE="${commit_message}"
4142
git pull
42-
cp -r $FILE $RELATIVE_DEST
43-
git add $RELATIVE_DEST
44-
git commit -m "${commit_message}"
43+
cp -r $FILE "$RELATIVE_DEST"
44+
git add "$RELATIVE_DEST"
45+
git commit -m "$COMMIT_MESSAGE"
4546
git push
4647
`;
4748
const outputPath = await getOutputPath(this, flags);

0 commit comments

Comments
 (0)