testing sed

This commit is contained in:
2020-11-17 20:25:49 -05:00
parent 033604cf0a
commit 29a885efb6
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "duplicacy",
"version": "20201117.3",
"version": "20201117.4",
"slug": "duplicacy",
"description": "Duplicacy backup",
"arch": ["armhf", "armv7"],

View File

@@ -17,6 +17,9 @@ FILTERS=$(jq --raw-output ".filters" $CONFIG_PATH)
# create the filters file
touch /.duplicacy/filters
# test
sed --help
# edit the /.duplicacy/preferences file
sed --in-place 's/<BACKUP_ID>/'${BACKUP_ID}'/' /.duplicacy/preferences
sed --in-place 's/<PROTOCOL>/'${PROTOCOL}'/' /.duplicacy/preferences