Skip to content
Snippets Groups Projects
Commit 5460671a authored by Bob Mottram's avatar Bob Mottram
Browse files

Quotes

parent 91dfd1df
No related branches found
No related tags found
No related merge requests found
......@@ -866,6 +866,9 @@ function backup_data {
function restore_data_from_storage {
restore_type="$1"
AllStr=$"all"
ExitStr=$"Exit"
if [[ $restore_type != "local" ]]; then
restore_command="${PROJECT_NAME}-restore-remote $remote_domain_name configuration;;"
else
......@@ -910,7 +913,6 @@ function restore_data_from_storage {
do
app_list=()
AllStr=$"all"
n=1
applist="$n $AllStr off"
n=$[n+1]
......@@ -934,7 +936,6 @@ function restore_data_from_storage {
app_index=$[app_index+1]
app_list+=("$app_name")
done
ExitStr=$"Exit"
applist="$applist $n $ExitStr on"
n=$[n+1]
......@@ -951,14 +952,15 @@ function restore_data_from_storage {
app_name=$(cat $data)
# exit
if [[ $app_name == "$ExitStr" ]]; then
if [[ "$app_name" == "$ExitStr" ]]; then
break
fi
clear
echo $"Selected $app_name"
# Restore all
if [[ $app_name == "$AllStr" ]]; then
if [[ "$app_name" == "$AllStr" ]]; then
$restore_command
retcode="$?"
if [[ "$retcode" != "0" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment