summaryrefslogtreecommitdiff
path: root/editors/atom/files/patch-atom.sh
blob: 9fa6334e5cc40b466e5f7b334ab1751ec3a1579c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- atom.sh.orig	2019-05-22 03:44:37 UTC
+++ atom.sh
@@ -2,6 +2,8 @@
 
 if [ "$(uname)" == 'Darwin' ]; then
   OS='Mac'
+elif [ "$(uname)" == 'FreeBSD' ]; then
+  OS='FreeBSD'
 elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
   OS='Linux'
 else
@@ -149,7 +151,7 @@ if [ $OS == 'Mac' ]; then
   else
     open -a "$ATOM_PATH/$ATOM_APP_NAME" -n --args --executed-from="$(pwd)" --pid=$$ --path-environment="$PATH" "$@"
   fi
-elif [ $OS == 'Linux' ]; then
+elif [ $OS == 'Linux' ] || [ $OS == 'FreeBSD' ]; then
   SCRIPT=$(readlink -f "$0")
   USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)