File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh -xu
22
33
4- # Option A: Install FileBot via DNF
4+ # Option A: Install FileBot via DNF5
5+ if dnf5 --version 2> /dev/null
6+ then
7+ # 0. Install dnf config-manager
8+ sudo dnf5 -y install ' dnf-command(config-manager)'
9+
10+ # 1. Add repository
11+ sudo dnf5 -y config-manager addrepo --from-repofile=' https://raw.githubusercontent.com/filebot/plugins/master/yum/main.repo'
12+
13+ # 2. Enable repository
14+ sudo dnf5 -y config-manager setopt filebot.enabled=1
15+
16+ # 3. Install dependencies
17+ sudo dnf5 -y install zenity mediainfo
18+
19+ # 4. Install FileBot
20+ sudo dnf5 -y install filebot
21+
22+ # 5. Run FileBot
23+ filebot -script fn:sysinfo
24+ exit $?
25+ fi
26+
27+
28+ # Option B: Install FileBot via DNF
529if dnf --version 2> /dev/null
630then
731 # 0. Install dnf config-manager
1842
1943 # 4. Install FileBot
2044 sudo dnf -y install filebot
45+
46+ # 5. Run FileBot
47+ filebot -script fn:sysinfo
48+ exit $?
2149fi
2250
2351
24- # Option B : Install FileBot via ZYPPER
52+ # Option C : Install FileBot via ZYPPER
2553if zypper --version 2> /dev/null
2654then
2755 # 1. Add repository
3260
3361 # 3. Install FileBot
3462 sudo zypper --non-interactive install filebot
63+
64+ # 4. Run FileBot
65+ filebot -script fn:sysinfo
66+ exit $?
3567fi
3668
3769
38- # Test Run
39- filebot -script fn:sysinfo
70+ # unknown package manager
71+ exit 127
You can’t perform that action at this time.
0 commit comments