소스 검색

For uninstall() strip package version specifier

bryan 5 달 전
부모
커밋
413580f4ef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -1505,7 +1505,7 @@ uninstall() {
   fi
 
   echo "Uninstalling JRiver Media Center package"
-  if "${PKG_REMOVE[@]}" "$MC_PKG"; then
+  if "${PKG_REMOVE[@]}" "${MC_PKG%%=*}"; then # remove version specifier
     echo "JRiver Media Center has been completely uninstalled"
     echo "To remove your MC library: rm -rf $HOME/.jriver"
   elif [[ $? -eq 100 ]]; then