Fix install script syntax error (#1805)

Fix hip-nvcc install warning on postinstall and prerm script

[ROCm/hip commit: f653c8c999]
This commit is contained in:
paulfreddy
2020-01-24 02:52:57 -08:00
committed by Maneesh Gupta
parent af3e8f633a
commit 68238a43ae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,6 +3,6 @@
ROCMDIR=@ROCM_PATH@
HIPDIR=$ROCMDIR/hip
if [ -d $ROCMDIR]
if [ -d $ROCMDIR] ; then
ln -s -f $ROCMDIR /opt/rocm
fi
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash
if [ -L "/opt/rocm" ]
if [ -L "/opt/rocm" ] ; then
unlink /opt/rocm
fi