Skip to content

Conversation

@DarwinJS
Copy link
Contributor

as discussed in 5409:

  • support for amazonlinux
  • ensure both tarball installs will reinstall / upgrade
  • clean up comments with incorrect urls

if [[ "$repobased" == true ]] ; then
echo "*** NOTE: Run your regular package manager update cycle to update PowerShell Core"
else
echo "*** NOTE: Re-run this script to update PowerShell Core"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be added to installpsh-suse.sh too.

exit 1
fi

echo "Installing PowerShell to /opt/microsoft/powershell/$release in overwrite mode"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add this line to installpsh-suse.sh too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this comment and the one below, they are about adding the ehco message to the same place in installpsh-suse.sh. Making this change won't need additional tests as it's just adding a log message. Could you please do it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is made, squashed and pushed - but this PR is now showing as "closed" ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DarwinJS The timeline of this PR shows that you closed it ... But I see you already opened a new PR.

DIST=`cat /etc/system-release |sed s/\ release.*//`
PSUEDONAME=`cat /etc/system-release | sed s/.*\(// | sed s/\)//`
REV=`cat /etc/system-release | sed s/.*release\ // | sed s/\ .*//`
if [[ $DIST == *"Amazon Linux"* ]] ; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code to check current OS and DistroBasedOn is different from other installsh- scripts targeting other Linux distros. Are you going to unify them all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although it could be done, it's not absolutely necessary so I tacked toward minimal changes to anything I wasn't going to unit test before doing the PR. install-powershell.sh needs it to correctly call installpsh-amazonlinux.sh and then installpsh-amazonlinux.sh needs it to validate the correct installer. None of the others need the amazonlinux piece - but I can also understand keeping this bit of code the same. I don't currently have the bandwidth to test if I change the others.

Let me know what you think we should do with this and then I'll do one update and include the other two items you mentioned in this PR.

Copy link
Member

@daxian-dbw daxian-dbw Nov 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification. I'm fine with the current change.
It would be more consistent if this piece of code can be unified, but that can be done in separate PRs. #closed

@DarwinJS DarwinJS closed this Nov 12, 2017
@DarwinJS DarwinJS deleted the issue5409 branch November 12, 2017 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants