Skip to content

Commit 193c7bc

Browse files
authored
Merge pull request #29 from nikolaj95o/force-replace-symlink-reinstall
Symlink exists error
2 parents 6b6e3cb + 96e92c4 commit 193c7bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ installed_packages+=(dayz-ctl)
211211
if ! command -v dayz-ctl &>/dev/null; then
212212
printf '%s\n\t%s\n' \
213213
"Create a symlink for the executable file, need superuser rights" \
214-
"ln -s \"$bin_path/dayz-ctl\" /usr/bin/dayz-ctl"
215-
$package_su ln -s "$bin_path/dayz-ctl" /usr/bin/dayz-ctl
214+
"ln -sf \"$bin_path/dayz-ctl\" /usr/bin/dayz-ctl"
215+
$package_su ln -sf "$bin_path/dayz-ctl" /usr/bin/dayz-ctl
216216
fi
217217

218218
# Create desktop entry

0 commit comments

Comments
 (0)