2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-04 06:00:45 +00:00

fix: initialise all variables before processing

This commit is contained in:
kevin zhuang 2020-06-28 14:24:44 +10:00
parent a5f13f835c
commit 4b22233820
5 changed files with 9 additions and 1 deletions

View File

@ -41,6 +41,9 @@ function usage() {
action_type="modified"
selected_files=()
confirm=""
selected_commit=""
selected_branch=""
while [[ "$#" -gt 0 ]]; do
case "$1" in

View File

@ -30,8 +30,9 @@ function usage() {
echo -e " -c, --commit\t\tedit commit using interactive rebase"
}
edit_type='all'
edit_type="all"
selected_files=()
selected_commit=""
while [[ "$#" -gt 0 ]]; do
case "$1" in

View File

@ -38,6 +38,7 @@ function usage() {
remote_url=""
post_hooks=()
confirm=""
while [[ "$#" -gt 0 ]]; do
case "$1" in

View File

@ -42,6 +42,8 @@ function usage() {
reset_option="--mixed"
reset_type="modified"
selected_files=()
confirm=""
selected_commit=""
while [[ "$#" -gt 0 ]]; do
case "$1" in

View File

@ -37,6 +37,7 @@ function usage() {
stash_command="apply"
selected_files=()
selected_stash=""
confirm=""
while [[ "$#" -gt 0 ]]; do
case "$1" in