diff --git a/projects/hip/packaging/hip-nvcc.postinst b/projects/hip/packaging/hip-nvcc.postinst index 2f901324cb..b70cf2848f 100755 --- a/projects/hip/packaging/hip-nvcc.postinst +++ b/projects/hip/packaging/hip-nvcc.postinst @@ -3,6 +3,6 @@ ROCMDIR=@ROCM_PATH@ HIPDIR=$ROCMDIR/hip -if [ -d $ROCMDIR] +if [ -d $ROCMDIR] ; then ln -s -f $ROCMDIR /opt/rocm fi diff --git a/projects/hip/packaging/hip-nvcc.prerm b/projects/hip/packaging/hip-nvcc.prerm index 96875e4a9c..baa0e6f5c7 100755 --- a/projects/hip/packaging/hip-nvcc.prerm +++ b/projects/hip/packaging/hip-nvcc.prerm @@ -1,5 +1,5 @@ #!/bin/bash -if [ -L "/opt/rocm" ] +if [ -L "/opt/rocm" ] ; then unlink /opt/rocm fi