Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Mar 20, 2024
1 parent 760eec1 commit 755c15c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
1 change: 0 additions & 1 deletion functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ function ask_yesno() {
[ "$READ_RESULT" == "y" ] && return "$?"
! [ "$READ_RESULT" == "n" ] || return "$?"
}

29 changes: 14 additions & 15 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,24 @@ function main() {

[[ ! -e "target/release/dybuk" || ! -e "target/release/deps" ]]
case "$?" in
0)
_install
;;
0)
_install
;;

1)
log_e "Generated files doesn't exists."
if [ "$EUID" = "0" ]; then
log_e "Building the project with root privileges is prohibited."
return 1
fi
1)
log_e "Generated files doesn't exists."
if [ "$EUID" = "0" ]; then
log_e "Building the project with root privileges is prohibited."
return 1
fi

if ask_yesno "Build project"; then
build && _install
return "$?"
fi
;;
if ask_yesno "Build project"; then
build && _install
return "$?"
fi
;;
esac
}

main "$@"
exit "$?"

1 change: 0 additions & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ function main() {

main "$@"
exit "$?"

0 comments on commit 755c15c

Please sign in to comment.