Skip to content

Commit 27af2cd

Browse files
committed
dxx-rebirth - skip config copying etc when running configure on removal
1 parent eef4c41 commit 27af2cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scriptmodules/ports/dxx-rebirth.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,13 @@ function configure_dxx-rebirth() {
126126
local ver
127127
local name="Descent Rebirth"
128128
for ver in 1 2; do
129-
mkRomDir "ports/descent${ver}"
130129
[[ "$ver" -eq 2 ]] && name="Descent 2 Rebirth"
131130
addPort "$md_id" "descent${ver}" "$name" "$md_inst/d${ver}x-rebirth -hogdir $romdir/ports/descent${ver}"
132131

132+
# skip folder / config work on removal
133+
[[ "$md_mode" == "remove" ]] && continue
134+
135+
mkRomDir "ports/descent${ver}"
133136
# copy any existing configs from ~/.d1x-rebirth and symlink the config folder to $md_conf_root/descent1/
134137
moveConfigDir "$home/.d${ver}x-rebirth" "$md_conf_root/descent${ver}/"
135138
if isPlatform "kms"; then

0 commit comments

Comments
 (0)