diff options
Diffstat (limited to 'yarns.webapp/yarn.sh')
-rw-r--r-- | yarns.webapp/yarn.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yarns.webapp/yarn.sh b/yarns.webapp/yarn.sh index 2a9081d..260fd74 100644 --- a/yarns.webapp/yarn.sh +++ b/yarns.webapp/yarn.sh @@ -1,4 +1,4 @@ -# Copyright (C) 2014 Codethink Limited +# Copyright (C) 2014-2019 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -40,6 +40,7 @@ add_to_config_file() then printf '[config]\n' > "$1" fi + sed -i "/^$2/d" "$1" printf '%s = %s\n' "$2" "$3" >> "$1" } |