#!/bin/bash # Perform custom remove softlink script for compiler package # Copyright (c) Huawei Technologies Co., Ltd. 2022. All rights reserved. while true; do case "$1" in --install-path=*) install_path=$(echo "$1" | cut -d"=" -f2-) shift ;; --version-dir=*) version_dir=$(echo "$1" | cut -d"=" -f2) shift ;; --latest-dir=*) latest_dir=$(echo "$1" | cut -d"=" -f2) shift ;; -*) shift ;; *) break ;; esac done rm -rf "$install_path/$latest_dir/ops" rm -rf "$install_path/$latest_dir/opp"