Skip to content

Commit

Permalink
Remove binary if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
subins2000 committed Sep 25, 2021
1 parent 0efdad7 commit 50cb919
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
ARG1=${1:-install}

if [ "$ARG1" == "install" ]; then
if [ -f "@INSTALL_PREFIX@/bin/varnam-ibus-engine" ]; then
sudo rm "@INSTALL_PREFIX@/bin/varnam-ibus-engine"
fi
sudo cp "$SCRIPT_DIR/varnam-ibus-engine" "@INSTALL_PREFIX@/bin/varnam-ibus-engine"

sudo mkdir -p "@INSTALL_PREFIX@/share/varnam/ibus/icons"
Expand Down

0 comments on commit 50cb919

Please sign in to comment.