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:
parent
a5f13f835c
commit
4b22233820
@ -41,6 +41,9 @@ function usage() {
|
||||
|
||||
action_type="modified"
|
||||
selected_files=()
|
||||
confirm=""
|
||||
selected_commit=""
|
||||
selected_branch=""
|
||||
|
||||
while [[ "$#" -gt 0 ]]; do
|
||||
case "$1" in
|
||||
|
@ -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
|
||||
|
@ -38,6 +38,7 @@ function usage() {
|
||||
|
||||
remote_url=""
|
||||
post_hooks=()
|
||||
confirm=""
|
||||
|
||||
while [[ "$#" -gt 0 ]]; do
|
||||
case "$1" in
|
||||
|
@ -42,6 +42,8 @@ function usage() {
|
||||
reset_option="--mixed"
|
||||
reset_type="modified"
|
||||
selected_files=()
|
||||
confirm=""
|
||||
selected_commit=""
|
||||
|
||||
while [[ "$#" -gt 0 ]]; do
|
||||
case "$1" in
|
||||
|
@ -37,6 +37,7 @@ function usage() {
|
||||
stash_command="apply"
|
||||
selected_files=()
|
||||
selected_stash=""
|
||||
confirm=""
|
||||
|
||||
while [[ "$#" -gt 0 ]]; do
|
||||
case "$1" in
|
||||
|
Loading…
Reference in New Issue
Block a user