section. Without SECTION_NAME, it acts on a global unnamed
section. cedit is short for config edit.
+-q Quiet
-v Verbose
-b Keep backup file
-h|--help Help"
local exists=true
local verbose=false
local backup=false
+ local quiet=false
case $1 in
-b) backup=true; shift ;;
-v) verbose=true; shift ;;
+ -q) quiet=true; shift ;;
-h|--help) echo "$help"; return ;;
esac
elif type -t diff &>/dev/null; then
diff=$(diff -u "$temp" "$file")
ret=$?
- if (( $ret )); then
+ if (( $ret )) && ! $quiet; then
echo "backup of original at $temp"
echo diff -u "$temp" "$file":
echo "$diff"