program-rename (LTS) #1
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
LTS
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ClosedLess/Microsoft-Edge-Updater#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "program-rename"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A pull request to merge the project rename into the main branch.
This PR will be the official closing future releases for this version of the software, marking v0.2.1 as the LTS. With this, will begin a new redevelopment of the software that is to come in the future; marking the beginning of v1.0.0.
Since this will become the LTS, any critical bugs will be addressed; however, no new features are to be added to v0.2.1, and future features will be implemented in v1.*.
:@TheOnePath:
This project was amazing to develop on, but is bound to a language with limited functionality, meaning much more can be done in another language.
You served us well updater, but the end is the beginning; forth to renaissance!
Since file was renamed to `msedge-updater`, check if Edge process is running with simply "msedge" is no longer suitable. - changed this to "msedge-$edge-channel"@ -0,0 +302,4 @@[[ ! $quiet -eq 0 ]] && >&2 echo "Identified a new release of Microsoft Edge ($edge_channel) [Current: v$current_version. New: v$release_version]. Starting the download and installation process..."## check if msedge process is already runningis_running=$(ps -aux | grep -oc "msedge-$edge_channel")This check works, However I can see a false positive scenario occuring.
If a long running command contains
msedge-$edge_channelthen it will be included in the ouput of the check.For example
Would give an output of 1 Even though msedge is not actually running.
I would suggest the use of a longer and slightly more verbose check.
In this check we:
pidof msedgeto return the PID(s) of any/all running msedge process(es)-ocmddefines the output as just the cmdline-ptells ps to just look for the given PID(s)It's also uneccesary to use the count flag in grep since no matches returns an empty result which is easy to test for.
EDIT: fix minortypo
Overall looks good,
However I am requesting changes due to an edge case issue that I noticed with the is_running check.
I have made a comment on the particular line with my thoughts and recommendations.
If you disagree I am happy to discuss further in the comments.
I would not have considered something like this to be part of the current PR given its purpose; however, a commit was made to fix a bug, which works but as outlined in the review above, would lead to unsuitable edge cases.
Removing the commit for the bug fix (
9ff1b6e40e) would likely be more danergous than having it in. Even though this commit is purposefully for renaming the software, it is also the start of the LTS, so addressing bugs is always essentially.I'm content with the implementation on top of the bug fix since a solution was provided in detail and clarity during the review. This is an exception however, and future bugs MUST be raised as an Issue.
Having cleared up the minor issue I can see no further problems with this PR
Feel free to merge whenever you're ready
[WIP] program-rename (LTS)to program-rename (LTS)