From 94594efdb0a1007ed21891b43a1021168bc8f130 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Wed, 24 Sep 2014 14:23:03 +0200 Subject: [PATCH] Small bugfix: text command arguments --- scripts/process_restore_helpers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/process_restore_helpers.sh b/scripts/process_restore_helpers.sh index cdf793f..ef80099 100644 --- a/scripts/process_restore_helpers.sh +++ b/scripts/process_restore_helpers.sh @@ -57,7 +57,7 @@ _process_should_be_restored() { _restore_all_processes() { local restore_processes="$(get_tmux_option "$restore_processes_option" "$restore_processes")" - if [ $restore_processes == ":all:" ]; then + if [ "$restore_processes" == ":all:" ]; then return 0 else return 1 @@ -108,7 +108,7 @@ _get_proc_restore_element() { _restore_list() { local user_processes="$(get_tmux_option "$restore_processes_option" "$restore_processes")" 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 echo "$default_processes" else