File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ function _clean_launchers() {
628
628
rm -f " $AMCACHEDIR " /mountpoints
629
629
for var in " $DATADIR " /applications/AppImages/* .desktop; do
630
630
# full path to appimage
631
- appimagename=$( grep " ^Exec= " 0< " $var " 2> /dev/null | head -1 | cut -c 6- | sed ' s/"//g; s/\s.*$//' )
631
+ appimagename=$( awk -F ' =| ' ' /Exec=/{print $2; exit} ' " $var " | sed ' s/"//g; s/\s.*$//' )
632
632
# name of the appimage
633
633
launcher2del=$( basename -- " $( echo " $appimagename " | tr ' [:upper:]' ' [:lower:]' ) " )
634
634
# removable mount point where the appimage may be stored
@@ -932,7 +932,7 @@ function _update_launchers() {
932
932
else
933
933
echo " ◆ Update local AppImages integrated manually"
934
934
for var in " $DATADIR " /applications/AppImages/* .desktop; do
935
- appimage_full_path=$( grep " ^Exec= " 0< " $var " 2> /dev/null | head -1 | cut -c 6- | sed ' s/"//g; s/\s.*$//' )
935
+ appimage_full_path=$( awk -F ' =| ' ' /Exec=/{print $2; exit} ' " $var " | sed ' s/"//g; s/\s.*$//' )
936
936
appimagename=$( basename -- " $appimage_full_path " )
937
937
appimage_path=$( echo " $appimage_full_path " | sed -E ' s|/[^/]+$|/|; s/\/*$//g' )
938
938
printf " %b\n File: %b%b\033[0m\n Path: %b" " $DIVIDING_LINE " " ${Green} " " $appimagename " " $appimage_path "
You can’t perform that action at this time.
0 commit comments