mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +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)
|
dnf)
|
||||||
"$ESCALATION_TOOL" rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
"$ESCALATION_TOOL" rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
||||||
if command -v dnf5 >/dev/null 2>&1; then
|
dnf_version=$(dnf --version | head -n 1 | cut -d '.' -f 1)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" config-manager addrepo --from-repofile=https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
|
if [ "$dnf_version" -eq 4 ]; then
|
||||||
elif command -v dnf >/dev/null 2>&1; then
|
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
|
"$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
|
fi
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y sublime-text
|
"$ESCALATION_TOOL" "$PACKAGER" install -y sublime-text
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user