From 68238a43ae3133fbb994c1ed84b6ea992aea669c Mon Sep 17 00:00:00 2001 From: paulfreddy <52053501+paulfreddy@users.noreply.github.com> Date: Fri, 24 Jan 2020 02:52:57 -0800 Subject: [PATCH] Fix install script syntax error (#1805) Fix hip-nvcc install warning on postinstall and prerm script [ROCm/hip commit: f653c8c9994212e22fb0bbbd1108671e83321ed6] --- projects/hip/packaging/hip-nvcc.postinst | 2 +- projects/hip/packaging/hip-nvcc.prerm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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