Compare commits
30 Commits
9f71c9f636
...
debian
| Author | SHA1 | Date | |
|---|---|---|---|
| 77cbe83996 | |||
| 73f5fe2e45 | |||
| 977956cc03 | |||
| 334cf5c3e0 | |||
| 6c5ae8044e | |||
| bdfa92f790 | |||
| cc3760347c | |||
| 6fb25215b5 | |||
| 812805ced5 | |||
| 632a0c6741 | |||
| 25065ea703 | |||
| fd9dba9f12 | |||
| 3d740f1c3b | |||
| 647831e860 | |||
| 452fd7600d | |||
| d84d9e6933 | |||
| 12e5c3e2b1 | |||
| 49335145fd | |||
| ec5a09da64 | |||
| bb277234ea | |||
| 2d4027379b | |||
| d59183ad63 | |||
| 2233d47782 | |||
| 1d3d82aa5b | |||
| d6cc45381e | |||
| de22a1668e | |||
| 6c283839fb | |||
| 682dc5f18a | |||
| ea7c081bd4 | |||
| 5881642a40 |
@@ -41,7 +41,7 @@ alias start_x11_vnc="x11vnc -many -display :0 -no6 -rfbport 5900 -auth /var/run/
|
||||
|
||||
|
||||
commandExists() {
|
||||
type $1 2 >& 1 > /dev/null
|
||||
type $1 2>&1 > /dev/null
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ doUpdateSystem() {
|
||||
|
||||
|
||||
updateFlatpak() {
|
||||
if [[ ! $(commandExists flatpak) ]]; then
|
||||
if ! $(commandExists flatpak); then
|
||||
return 1;
|
||||
fi
|
||||
noconfirm=
|
||||
@@ -127,7 +127,7 @@ finds () {
|
||||
|
||||
# sends a desktop-notification with an icon signalling an error
|
||||
notifyError () {
|
||||
if [[ ! $(commandExists notify-send) ]]; then
|
||||
if ! $(commandExists notify-send); then
|
||||
echo "ERROR: $1";
|
||||
else
|
||||
notify-send "$1" --icon=data-warning;
|
||||
@@ -137,7 +137,7 @@ notifyError () {
|
||||
|
||||
# sends a desktop-notification with an icon signalling a simple information
|
||||
notifyInfo () {
|
||||
if [[ ! $(commandExists notify-send) ]]; then
|
||||
if ! $(commandExists notify-send); then
|
||||
echo "INFO: $1";
|
||||
else
|
||||
notify-send "$1" --icon=preferences-desktop-notification;
|
||||
|
||||
Reference in New Issue
Block a user