Корректировка phpstorm-url-handler
This commit is contained in:
parent
d84e756e07
commit
9e9dfc7174
@ -1,6 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. "../src/01-common.sh" || exit 5
|
echo
|
||||||
title "Installing phpstorm-url-handler..."
|
echo "==============================================="
|
||||||
|
echo "Installing phpstorm-url-handler..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
|
installed() {
|
||||||
|
command -v "$1" >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
# https://github.com/rozwell/phpstorm-url-handler/
|
# https://github.com/rozwell/phpstorm-url-handler/
|
||||||
# https://askubuntu.com/a/1023143
|
# https://askubuntu.com/a/1023143
|
||||||
@ -14,9 +21,9 @@ sudo rm -rf /usr/share/applications/phpstorm-url-handler.desktop >/dev/null
|
|||||||
if installed "git"; then
|
if installed "git"; then
|
||||||
sudo git clone https://github.com/rozwell/phpstorm-url-handler.git /usr/src/phpstorm-url-handler
|
sudo git clone https://github.com/rozwell/phpstorm-url-handler.git /usr/src/phpstorm-url-handler
|
||||||
else
|
else
|
||||||
sudo wget https://github.com/rozwell/phpstorm-url-handler/archive/master.zip -O /usr/src/phpstorm-url-handler.zip
|
sudo wget https://github.com/rozwell/phpstorm-url-handler/archive/master.zip -O /tmp/phpstorm-url-handler.zip
|
||||||
sudo unzip /usr/src/phpstorm-url-handler.zip -d /usr/src/phpstorm-url-handler
|
sudo unzip /tmp/phpstorm-url-handler.zip -d /usr/src/phpstorm-url-handler
|
||||||
sudo rm -f /usr/src/phpstorm-url-handler.zip
|
sudo rm -f /tmp/phpstorm-url-handler.zip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info "Copy .desktop"
|
info "Copy .desktop"
|
||||||
|
Loading…
Reference in New Issue
Block a user