Skip to content

Commit

Permalink
update 'init' - fix notification on requirements error
Browse files Browse the repository at this point in the history
  • Loading branch information
fbnmtz committed Dec 14, 2024
1 parent f2ba868 commit ba78072
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions init
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# Created: Thursday, 2021/05/20 - 13:18:34
# Author.: @fbnmtz, fgm ([email protected])
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Saturday, 2024/12/14 - 12:15:08
# Last Modified: Saturday, 2024/12/14 - 15:30:33
# Modified By..: @fbnmtz, ([email protected])
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 0.1.18.701
# Version: 0.1.18.707
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# >
Expand Down Expand Up @@ -202,7 +202,9 @@ xrequirements(){
local tools=$@
local error_msg="requirements error! please install missing tools: '${tools//\:/\' or \'}'."
echo -e "$error_msg"
notify-send "$0" "$error_msg"
if source "$xSHELL_PATH/system" 2> /dev/null; then
xsys.notify "$APP" "$error_msg"
fi
exit 10
}
# check if a package exists on the system
Expand Down

0 comments on commit ba78072

Please sign in to comment.