Skip to content

Commit

Permalink
[macos] remove old keyboards on install
Browse files Browse the repository at this point in the history
  • Loading branch information
thantthet committed Sep 23, 2019
1 parent 26e3997 commit ef101b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OSX/package/resource/scripts/postinstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# check if was installed to root or user home
if [ -f "/kbLayouts.zip" ]
Expand All @@ -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/"
Expand Down

0 comments on commit ef101b0

Please sign in to comment.