Skip to content

Commit

Permalink
add error message when fail to update setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeguk committed Mar 26, 2016
1 parent 0705b45 commit 72e4cd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vimsw
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

VERSION="0.0.2"
VERSION="0.0.3"
AUTHOR="taeguk (http://taeguk.me)"

# global constants
Expand Down Expand Up @@ -184,8 +184,8 @@ del_setting() {

upd_setting() {
if [ $cur_id -ge $MAX_SETTING_NUM ]; then
# it is not error!
return 0
echo "[!] Fail to update setting! Your setting is not registered."
return 1
else
local name=${settings[$cur_id]}
if [ -e "$VIMSW_VIMRC_PREFIX$name" ]; then
Expand Down

0 comments on commit 72e4cd8

Please sign in to comment.