forked from maoschanz/appfolders-manager-gnome-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·41 lines (27 loc) · 945 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
if (( $EUID == 0 )); then
if [ ! -d "/usr/share/gnome-shell/extensions" ]; then
mkdir /usr/share/gnome-shell/extensions
fi
INSTALL_DIR="/usr/share/gnome-shell/extensions/[email protected]"
else
if [ ! -d "$HOME/.local/share/gnome-shell/extensions" ]; then
mkdir $HOME/.local/share/gnome-shell/extensions
fi
INSTALL_DIR="$HOME/.local/share/gnome-shell/extensions/[email protected]"
fi
if [ ! -d "$INSTALL_DIR" ]; then
mkdir $INSTALL_DIR
fi
echo "Installing extension files in $INSTALL_DIR"
cp appfolderDialog.js $INSTALL_DIR/appfolderDialog.js
cp extension.js $INSTALL_DIR/extension.js
cp prefs.js $INSTALL_DIR/prefs.js
cp convenience.js $INSTALL_DIR/convenience.js
cp stylesheet.css $INSTALL_DIR/stylesheet.css
cp dragAndDrop.js $INSTALL_DIR/dragAndDrop.js
cp metadata.json $INSTALL_DIR/metadata.json
cp -r schemas $INSTALL_DIR
cp -r locale $INSTALL_DIR
echo "Done."
exit