Skip to content

Commit 72a5989

Browse files
fn mkRomDir - create symlink only if 'genesis' not already exist
allows stand-alone genesis system and romdir by user config
1 parent 94b131a commit 72a5989

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scriptmodules/helpers.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,11 @@ function mkUserDir() {
561561
function mkRomDir() {
562562
mkUserDir "$romdir/$1"
563563
if [[ "$1" == "megadrive" ]]; then
564-
pushd "$romdir"
565-
ln -snf "$1" "genesis"
566-
popd
564+
if [[ ! -e "$romdir/genesis" ]]; then
565+
pushd "$romdir"
566+
ln -snf "$1" "genesis"
567+
popd
568+
fi
567569
fi
568570
}
569571

0 commit comments

Comments
 (0)