Commit cd6c3e5d authored by Roman Alifanov's avatar Roman Alifanov

one file extension check has been removed (eepm does this)

parent fdef45d9
......@@ -52,14 +52,9 @@ pkgselection() {
# Проверка, пакет ли файл
preparepkg() {
if [[ $PKG_PATH == *.rpm || $PKG_PATH == *.AppImage || $PKG_PATH == *.appimage || $PKG_PATH == *.deb ]] && [ -e "$PKG_PATH" ]; then
PKG_NAME=$(basename -- "$PKG_PATH" | tr -d ' ')
PKG_SYMB_LINK_PATH="$EPMGPI_TMP/$PKG_NAME"
ln -s "$PKG_PATH" "$PKG_SYMB_LINK_PATH"
else
ntf_error "Файл не существует или не является .rpm, .AppImage или .deb"
fi
PKG_NAME=$(basename -- "$PKG_PATH" | tr -d ' ')
PKG_SYMB_LINK_PATH="$EPMGPI_TMP/$PKG_NAME"
ln -s "$PKG_PATH" "$PKG_SYMB_LINK_PATH"
}
# Установка пакета
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment