Skip to content

Commit

Permalink
Double-slash fix (f909a40) for ash-template. (#1453)
Browse files Browse the repository at this point in the history
Co-authored-by: Nepomuk Seiler <muuki88@users.noreply.github.com>
  • Loading branch information
darabos and muuki88 committed Aug 31, 2021
1 parent 080ddbb commit cc45026
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ realpath () {

if [ "$TARGET_FILE" = "." -o "$TARGET_FILE" = ".." ]; then
cd "$TARGET_FILE"
TARGET_FILEPATH=
fi
TARGET_DIR="$(pwd -P)"
if [ "$TARGET_DIR" = "/" ]; then
TARGET_FILE="/$TARGET_FILE"
else
TARGET_FILEPATH=/$TARGET_FILE
TARGET_FILE="$TARGET_DIR/$TARGET_FILE"
fi

echo "$(pwd -P)/$TARGET_FILE"
echo "$TARGET_FILE"
)
}

Expand Down

0 comments on commit cc45026

Please sign in to comment.