Commit Graph

15 Commits

Author SHA1 Message Date
e1c95d1b73 Updated help message
Changed help message to match documentation
2021-07-01 14:11:54 +01:00
e1c3f9f1cc Fixed bug
Identified bug around line 400 where line started with 'r[['. Removed 'r' from the start of the line.
2021-07-01 13:56:14 +01:00
f7dff7e7d8 Changed version to no longer be in alpha. 2021-06-30 15:42:52 +01:00
21889a7362 Updated updater
Added quiet operation
    - this will prevent STDOUT and STDERR from being displayed to the
      terminal, unless a decision is encountered - will not assume yes.
    - notifications are still sent since '--no-notify' can be used.

All echo statements responsible for outputting have been changed to
initial check if script is running in quiet mode.

'printf' statements which do not serve a specific purpose have been
changed to 'echo' commands.

'echo' statements that are responsible for displaying error messages are
now sent over STDERR instead of STDOUT.

Added '--full-clean' argument which will remove any possibly generated
files, by updater, from the system, including logs.
2021-06-24 15:51:05 +01:00
9094d209df Updated updater to v0.2
The channel for Edge to be updated can be changed between dev and beta.
    - all hardcoded values which contained the keyword "beta" have been
      replaced with a variable substitute.

Moved the source.list check statement before checking if Edge is
installed to determine which channel is being used that session.
    - the channel is determined from the source.list file, alternatively
      using the '-c | --set-channel=' flag.

Updated preamble and help message display.
Other fixes.
2021-06-23 23:50:54 +01:00
4e68936a6a Committing extra changes missed
Addition changes which are part of the previous commit but weren't added
for tracking before committing.
2021-06-22 17:20:44 +01:00
8522783a12 Updated updater
Changed preamble and comments

Changed the wording of some messages to the user and log. Program adds
the backup archive to the garbage list if the restoration was successful.
2021-06-22 17:18:14 +01:00
8f21f3903d Fixed bug with debugging mode
Script now takes flag '--mode=' appended with a mode.
    - only current mode is 'debug'. Use this to enter debug run mode.
    - script now outputs the session log is mode is in debug.
2021-06-21 18:31:52 +01:00
05e178b38b Fixed bug with testing variable 2021-06-21 15:54:50 +01:00
da6922a337 Updated updater and fixed bugs
Added basic testing implementations
    - WIP: only outputs the log file at end of a run.
    - added option '--dev-test' to be used when running and testing the
      program.
    - practice of feature will be within a docker container but can
      equally been used on a native system.

Created 'check_restoration' function for optimisation of repetition
    - simply ensures that the restoration at any point was successful.
    - if the restoration fails, the program logs and exits accordingly;
      otherwise, if it succeeded then at this point the program exits
      with a different exit code since something else went wrong to
      trigger a system restoration.
    - takes 2 arguments, the exit code of the restoration system and
      the exit code of the section which triggered the restoration.
    - refactored sections can be identified containing the
      'check_restoration' function call.

Removed trailing whitespaces.
2021-06-21 14:35:48 +01:00
11a90f8f92 Fixed bugs
Changed the behaviour of tar to not be verbose and any output it placed
in a tmp file, STDERR is redirected to logs.

Bug with the format of exit code capture in updater that was fixed in
common; however, those changes hadn't been made until now in updater.
2021-06-13 21:41:33 +01:00
a7bb0d2d80 Updated to v0.1.4
Fixed bugs and issues
    - Fixed issue in common script with incorrect exit code capture of
      subshells.
    - Changed tar command for decompressing data.tar.gz file to only log
      STDERR and void STDOUT.
    - Log function was called without correct arguments @ln:239. Message
      related to there being a new version available but wasn't logged.
2021-06-05 16:51:12 +01:00
2add5afc7c Updated updater to v0.1.3
Implemented notification system.
    - Send a notification to the user's system using the `notify` function in common.
    - Notifications are send on most important outcomes of the update
      session meaning program can have STDOUT piped to another location
      and still receive a message after operation.
    - Added the `--no-notify` flag to prevent notifications from being
      sent to the user. By default, notifications will be sent without
      this flag.

- Program now checks to ensure the script is being ran with root
  privilages. Program will exit otherwise without notification.

- Program now keeps track of garbage data to ensure a proper clean up
  after operation of a session.
    - Unnecessary large volumes of data sat in /tmp/ can be removed
      instantly to prevent taking up space which isn't required. File
      sizes significantly less can remain and cleared out on next
      restart of the system.

- Updated usage message.
- Changed some of the output messages.
- Fixed bug with relative paths.
2021-05-28 18:09:13 +01:00
9493db2435 Added license agreement preamble
Added the GNU GPLv3 preamble for licencing software program files.
Adjusted existing preamble to accommodate this license.
2021-05-23 23:08:42 +01:00
793a57a70c Added program files to repo
All the files associated with Microsoft Edge Updater have been added to
this repository to allow for version control as of this point and for
other users to start using/testing the program.

There are no previous commits in the history for these files; however,
further development will be continued and committed to this repo.
Currently the program is at version 0.1.2 in beta phase of development
and currently stable as of minimal testing.
2021-05-23 21:20:07 +01:00