X-Git-Url: https://iankelling.org/git/?p=cedit;a=blobdiff_plain;f=cedit;h=629fe01b1e01db5baabbed83a317206dca5ef2bb;hp=7fbf7439338b159685d527cbb32ea5c191bbab76;hb=3e93da34a19ca898d8c1ab7902e600d2a9a2defa;hpb=6f89fb66315647b6421e44abe5a49789efc9dbdc diff --git a/cedit b/cedit index 7fbf743..629fe01 100755 --- a/cedit +++ b/cedit @@ -29,13 +29,10 @@ section. cedit is short for config edit. local verbose=false case $1 in + -v) verbose=true; shift ;; -h|--help) echo "$help"; return ;; esac - if [[ $1 == -v ]]; then - verbose=true - shift - fi if (( $# == 2 )); then name=": $1" shift @@ -111,11 +108,10 @@ section. cedit is short for config edit. fi else diff=$(cmp "$temp" "$file") - ret=$? if $verbose; then echo "$diff" fi fi - return $ret + return 0 } cedit "$@"