summaryrefslogtreecommitdiff
path: root/editors/atom/files/patch-atom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'editors/atom/files/patch-atom.sh')
-rw-r--r--editors/atom/files/patch-atom.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/atom/files/patch-atom.sh b/editors/atom/files/patch-atom.sh
new file mode 100644
index 000000000000..9fa6334e5cc4
--- /dev/null
+++ b/editors/atom/files/patch-atom.sh
@@ -0,0 +1,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)/..)
+