From ef101b0f6c16f99fef10cd8dd41746d3eb566c9f Mon Sep 17 00:00:00 2001 From: Thant Thet Date: Mon, 23 Sep 2019 16:59:59 +0630 Subject: [PATCH] [macos] remove old keyboards on install --- OSX/package/resource/scripts/postinstall | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OSX/package/resource/scripts/postinstall b/OSX/package/resource/scripts/postinstall index 6963f8e..967cc55 100755 --- a/OSX/package/resource/scripts/postinstall +++ b/OSX/package/resource/scripts/postinstall @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # check if was installed to root or user home if [ -f "/kbLayouts.zip" ] @@ -9,7 +9,9 @@ then DESC_DIR="$HOME/" fi -# make dir +# remove old keyboards +rm -rf "$HOME/.keymagic" +# remake dir mkdir -p "$HOME/.keymagic" # cd to dir cd "$HOME/.keymagic/"