Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Commit 4663391

Browse files
committed
Reformat and address a few minor errors
1 parent 87fce31 commit 4663391

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

bin/git-autocommit

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/bin/bash
22

3-
if test -z "$1"
4-
then
5-
msg="Update"
3+
if test -z "$1"; then
4+
msg="Update"
65
else
7-
msg="$1"
6+
msg="$1"
87
fi
98

109
git add .

bin/git-full-restore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/usr/bin/env bash
22

3-
if [ -z ${1+x} ]
4-
then
5-
echo File paths not specified
6-
exit 1
3+
if [ -z ${1+x} ]; then
4+
echo File paths not specified
5+
exit 1
76
else
8-
git restore --staged $@
9-
git restore $@
7+
git restore --staged "$@"
8+
git restore "$@"
109
fi

0 commit comments

Comments
 (0)