mirror of
https://github.com/shvedes/photoshop-linux.git
synced 2025-09-10 21:25:05 +00:00
Compare commits
No commits in common. "bc7d519ac4902570bd5e886dfa592c441440c63f" and "55e2743cdcd5f6a331c67354e1d76d7004a41741" have entirely different histories.
bc7d519ac4
...
55e2743cdc
@ -282,14 +282,12 @@ download_photoshop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
verify_path() {
|
verify_path() {
|
||||||
# test $1, if that fails test $pwd
|
local path="$1"
|
||||||
# relative paths are also working now
|
|
||||||
local path="$(realpath "${1:-$(pwd)}")"
|
|
||||||
|
|
||||||
# Check the validity of the path if the user has specified the absolute path manually. This is necessary in case the user accidentally misspells $HOME paths.
|
# Check the validity of the path if the user has specified the absolute path manually. This is necessary in case the user accidentally misspells $HOME paths.
|
||||||
# https://github.com/shvedes/photoshop-linux/issues/1
|
# https://github.com/shvedes/photoshop-linux/issues/1
|
||||||
if [[ ! "$path" == "$HOME"* ]]; then
|
if [[ ! "$path" == "$HOME"* ]]; then
|
||||||
echo -e "$ERROR Cannot validate ${YELLOW}\$HOME${RESET} path."
|
echo -e "$ERROR Cannot validade ${YELLOW}\$HOME${RESET} path."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user