Small bugfix: text command arguments

This commit is contained in:
Bruno Sutic 2014-09-24 14:23:03 +02:00
parent 1b79eb2f63
commit 94594efdb0
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C

View File

@ -57,7 +57,7 @@ _process_should_be_restored() {
_restore_all_processes() { _restore_all_processes() {
local restore_processes="$(get_tmux_option "$restore_processes_option" "$restore_processes")" local restore_processes="$(get_tmux_option "$restore_processes_option" "$restore_processes")"
if [ $restore_processes == ":all:" ]; then if [ "$restore_processes" == ":all:" ]; then
return 0 return 0
else else
return 1 return 1
@ -108,7 +108,7 @@ _get_proc_restore_element() {
_restore_list() { _restore_list() {
local user_processes="$(get_tmux_option "$restore_processes_option" "$restore_processes")" local user_processes="$(get_tmux_option "$restore_processes_option" "$restore_processes")"
local default_processes="$(get_tmux_option "$default_proc_list_option" "$default_proc_list")" local default_processes="$(get_tmux_option "$default_proc_list_option" "$default_proc_list")"
if [ -z $user_processes ]; then if [ -z "$user_processes" ]; then
# user didn't define any processes # user didn't define any processes
echo "$default_processes" echo "$default_processes"
else else