Skip to content

Commit

Permalink
[FIX] Διόρθωση ελέγχου symlink για συμβατότητα με macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
zoispag committed Dec 28, 2020
1 parent 197064f commit 0d220f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shelldio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,11 @@ reset_favorites() {
}

git_updater() {
if [[ "$(file /usr/local/bin/shelldio | grep -io "link")" == "link" ]]; then
if [[ -L "/usr/local/bin/shelldio" ]]; then
printf "Το Shelldio έχει εγκατασταθεί σωστά μέσω git\n"
RETURN_TO_PWD=$(pwd)
cd "$(file /usr/local/bin/shelldio | awk -F'to ' '{print $2}' | awk -F"shelldio\\\.sh" '{print $1}')" || return
basedir=$(dirname $(readlink /usr/local/bin/shelldio))
cd "$basedir" || return
self_update
cd "$RETURN_TO_PWD" || exit 0
else
Expand Down

0 comments on commit 0d220f8

Please sign in to comment.