Skip to content

Commit 622cef7

Browse files
committed
Fixed readlink error if path does not exists
1 parent 6c233c3 commit 622cef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ read -i "$COSCALE_APPID" -p "Please enter your application id: " -e -r COSCALE_A
4949
read -i "$COSCALE_TOKEN" -p "Please enter your access token: " -e -r COSCALE_TOKEN
5050

5151
read -i "$PATH_INSTALL" -p "Installation path: " -e -r PATH_INSTALL
52-
PATH_INSTALL=$(readlink -f $PATH_INSTALL)
52+
PATH_INSTALL=$(readlink -f $PATH_INSTALL || echo $PATH_INSTALL)
5353

5454
if ask_yesno "Create a symlink [$PATH_SYMLINK]?"; then
5555
SYMLINK="true"

0 commit comments

Comments
 (0)