File tree 2 files changed +10
-25
lines changed
2 files changed +10
-25
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,14 @@ function install_eduke32() {
76
76
77
77
function game_data_eduke32() {
78
78
local dest=" $romdir /ports/duke3d"
79
- if [[ " $md_id " == " eduke32" ]]; then
80
- if [[ ! -n $( find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
81
- mkUserDir " $dest "
82
- local temp=" $( mktemp -d) "
83
- download " $__archive_url /3dduke13.zip" " $temp "
84
- unzip -L -o " $temp /3dduke13.zip" -d " $temp " dn3dsw13.shr
85
- unzip -L -o " $temp /dn3dsw13.shr" -d " $dest " duke3d.grp duke.rts
86
- rm -rf " $temp "
87
- chown -R $user :$user " $dest "
88
- fi
79
+ if [[ ! -n $( find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
80
+ mkUserDir " $dest "
81
+ local temp=" $( mktemp -d) "
82
+ download " $__archive_url /3dduke13.zip" " $temp "
83
+ unzip -L -o " $temp /3dduke13.zip" -d " $temp " dn3dsw13.shr
84
+ unzip -L -o " $temp /dn3dsw13.shr" -d " $dest " duke3d.grp duke.rts
85
+ rm -rf " $temp "
86
+ chown -R $user :$user " $dest "
89
87
fi
90
88
}
91
89
@@ -107,7 +105,7 @@ function configure_eduke32() {
107
105
rm -f " $romdir /ports/Duke3D Shareware.sh"
108
106
109
107
if [[ " $md_mode " == " install" ]]; then
110
- game_data_eduke32
108
+ [[ " $md_id " == " eduke32 " ]] && game_data_eduke32
111
109
112
110
touch " $config "
113
111
iniConfig " " ' "' " $config "
Original file line number Diff line number Diff line change @@ -75,19 +75,6 @@ function install_jfduke3d() {
75
75
fi
76
76
}
77
77
78
- function game_data_jfduke3d() {
79
- local dest=" $romdir /ports/duke3d"
80
- if [[ ! -n $( find $dest -maxdepth 1 -iname duke3d.grp) ]]; then
81
- mkUserDir " $dest "
82
- local temp=" $( mktemp -d) "
83
- download " $__archive_url /3dduke13.zip" " $temp "
84
- unzip -L -o " $temp /3dduke13.zip" -d " $temp " dn3dsw13.shr
85
- unzip -L -o " $temp /dn3dsw13.shr" -d " $dest " duke3d.grp duke.rts
86
- rm -rf " $temp "
87
- chown -R $user :$user " $dest "
88
- fi
89
- }
90
-
91
78
function config_file_jfduke3d() {
92
79
local config=" $1 "
93
80
if [[ -f " $config " ]] || isPlatform " x86" ; then
@@ -113,6 +100,6 @@ function configure_jfduke3d() {
113
100
if [[ " $md_mode " != " install" ]]; then
114
101
return
115
102
fi
116
- game_data_jfduke3d
103
+ game_data_eduke32
117
104
config_file_jfduke3d " $md_conf_root /jfduke3d/duke3d.cfg"
118
105
}
You can’t perform that action at this time.
0 commit comments