Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Fix symlink creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jip-Hop committed Aug 31, 2023
1 parent 428f9a0 commit b280de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ubernerd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ if [[ "${CREATE_SYMLINK}" -eq 1 ]]; then
symlink_path=/usr/local/sbin/nerdctl
correct_destination="${script_parent_dir}/nerdctl"

if [[ ! -f /usr/local/sbin/nerdctl ]]; then
if [[ ! -e "$symlink_path" && ! -L "$symlink_path" ]]; then
echo ''
echo 'Creating symlink for nerdctl...'
ln -s "$correct_destination" "$symlink_path"
Expand Down

0 comments on commit b280de4

Please sign in to comment.