mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 12:59:41 +00:00
Update core/tabs/applications-setup/Developer-tools/sublime-setup.sh
Co-authored-by: Jeevitha Kannan K S <ksjeevithakannan123@gmail.com>
This commit is contained in:
parent
9ded0220ae
commit
07f1ff9e2e
|
@ -23,10 +23,11 @@ installSublime() {
|
|||
;;
|
||||
dnf)
|
||||
"$ESCALATION_TOOL" rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
||||
if command -v dnf5 >/dev/null 2>&1; then
|
||||
"$ESCALATION_TOOL" "$PACKAGER" config-manager addrepo --from-repofile=https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
|
||||
elif command -v dnf >/dev/null 2>&1; then
|
||||
dnf_version=$(dnf --version | head -n 1 | cut -d '.' -f 1)
|
||||
if [ "$dnf_version" -eq 4 ]; then
|
||||
"$ESCALATION_TOOL" "$PACKAGER" config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
|
||||
else
|
||||
"$ESCALATION_TOOL" "$PACKAGER" config-manager addrepo --from-repofile=https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
|
||||
fi
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y sublime-text
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user