diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-07 18:05:22 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-07 18:05:22 +0100 |
commit | 571aa60fb30d1141e93a7b2d6f4d71e149d7e8d2 (patch) | |
tree | 55a065be598e31a8a9f24ac98eabc7289b5e6a7a /src | |
parent | 22138bec81f6278551a5a0b5c839b711818b3d35 (diff) |
syntax fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 2 | ||||
-rw-r--r-- | src/core/libs/lib-ui.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 2d46872..7eccadf 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -90,7 +90,7 @@ interactive_set_clock() ask_datetime # save the time - date -s $ANSWER_DATETIME || show_warning "Date/time setting failed" "Something went wrong when doing date -s $ANSWER_DATETIME" + date -s "$ANSWER_DATETIME" || show_warning "Date/time setting failed" "Something went wrong when doing date -s $ANSWER_DATETIME" /sbin/hwclock --systohc $HWCLOCK_PARAMS --noadjfile return 0 diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index 517efe3..a1a3528 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -150,7 +150,7 @@ ask_datetime () # DD/MM/YYYY hh:mm:ss -> MMDDhhmmYYYY.ss (date default format, set like date $ANSWER_DATETIME) Not enabled because there is no use for it i think. # ANSWER_DATETIME=$(echo "$_date" "$_time" | sed 's#\(..\)/\(..\)/\(....\) \(..\):\(..\):\(..\)#\2\1\4\5\3\6#g') - # DD/MM/YYYY hh:mm:ss -> YYYY-MM-DD hh:mm:ss ( date string format, set like date -s $ANSWER_DATETIME) + # DD/MM/YYYY hh:mm:ss -> YYYY-MM-DD hh:mm:ss ( date string format, set like date -s "$ANSWER_DATETIME") ANSWER_DATETIME="$(echo "$_date" "$_time" | sed 's#\(..\)/\(..\)/\(....\) \(..\):\(..\):\(..\)#\3-\2-\1 \4:\5:\6#g')" elif [ "$var_UI_TYPE" = cli ] then |