mirror of
https://github.com/shvedes/photoshop-linux.git
synced 2025-09-09 04:35:00 +00:00
Added named arg
This commit is contained in:
parent
c1f873a4d1
commit
7e1a8f3b20
@ -151,20 +151,23 @@ install_deps() {
|
|||||||
# ###################################################################
|
# ###################################################################
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# $1 - path
|
||||||
is_path_exists() {
|
is_path_exists() {
|
||||||
if ! [ -d "$1" ]; then
|
local path=$1
|
||||||
|
|
||||||
|
if ! [ -d "${path}" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# BUG
|
# BUG
|
||||||
# echo -e "$WARNING The specified path '$1' already exists."
|
# echo -e "$WARNING The specified path '$1' already exists."
|
||||||
echo -e "$WARNING The specified path '${YELLOW}${1}${RESET}' already exists."
|
echo -e "$WARNING The specified path '${YELLOW}${path}${RESET}' already exists."
|
||||||
|
|
||||||
if ! ask_user "Do you want to ${RED}delete${RESET} previous installation?"; then
|
if ! ask_user "Do you want to ${RED}delete${RESET} previous installation?"; then
|
||||||
echo -e "$LOG Exiting."
|
echo -e "$LOG Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! rm -rfv "${1:?}" 2>>./install_log.log; then
|
if ! rm -rfv "${path:?}" 2>>./install_log.log; then
|
||||||
print_err "Something went wrong."
|
print_err "Something went wrong."
|
||||||
fi
|
fi
|
||||||
echo -e "$LOG Deleted old installation."
|
echo -e "$LOG Deleted old installation."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user