mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-09 20:47:48 +00:00
Fix download with proper path
This commit is contained in:
@@ -24,7 +24,9 @@ if [[ -z "$APP_NAME" || -z "$APP_URL" || -z "$ICON_REF" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Refer to local icon or fetch remotely from URL
|
# Refer to local icon or fetch remotely from URL
|
||||||
|
ICON_DIR="$HOME/.local/share/applications/icons"
|
||||||
if [[ $ICON_REF =~ ^https?:// ]]; then
|
if [[ $ICON_REF =~ ^https?:// ]]; then
|
||||||
|
ICON_PATH="$ICON_DIR/$APP_NAME.png"
|
||||||
if curl -sL -o "$ICON_PATH" "$ICON_REF"; then
|
if curl -sL -o "$ICON_PATH" "$ICON_REF"; then
|
||||||
ICON_PATH="$ICON_DIR/$APP_NAME.png"
|
ICON_PATH="$ICON_DIR/$APP_NAME.png"
|
||||||
else
|
else
|
||||||
@@ -32,7 +34,7 @@ if [[ $ICON_REF =~ ^https?:// ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
ICON_PATH="$HOME/.local/share/applications/icons/$ICON_REF"
|
ICON_PATH="$ICON_DIR/$ICON_REF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use custom exec if provided, otherwise default behavior
|
# Use custom exec if provided, otherwise default behavior
|
||||||
|
|||||||
Reference in New Issue
Block a user