From 477e076e8ea691345e2dd3161f0de974a418fab9 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 24 Apr 2020 06:41:57 +0430 Subject: [PATCH] shebang added & add main function --- winecfg.sh | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/winecfg.sh b/winecfg.sh index 42e718d..5200808 100755 --- a/winecfg.sh +++ b/winecfg.sh @@ -1,14 +1,18 @@ -SCR_PATH="$HOME/.photoshopCCV19" -CACHE_PATH="$HOME/.cache/photoshopCCV19" -WINE_PATH="$SCR_PATH/wine-3.4" -RESOURCES_PATH="$SCR_PATH/resources" -WINE_PREFIX="$SCR_PATH/prefix" -export WINEPREFIX="$WINE_PREFIX" -export PATH="$WINE_PATH/bin:$PATH" -export LD_LIBRARY_PATH="$WINE_PATH/lib:$LD_LIBRARY_PATH" -#export WINEDLLOVERRIDES="winemenubuilder.exe=d" -export WINESERVER="$WINE_PATH/bin/wineserver" -export WINELOADER="$WINE_PATH/bin/wine" -export WINEDLLPATH="$WINE_PATH/lib/wine" +#!/usr/bin/env bash +function main(){ + SCR_PATH="$HOME/.photoshopCCV19" + CACHE_PATH="$HOME/.cache/photoshopCCV19" + WINE_PATH="$SCR_PATH/wine-3.4" + RESOURCES_PATH="$SCR_PATH/resources" + WINE_PREFIX="$SCR_PATH/prefix" + export WINEPREFIX="$WINE_PREFIX" + export PATH="$WINE_PATH/bin:$PATH" + export LD_LIBRARY_PATH="$WINE_PATH/lib:$LD_LIBRARY_PATH" + #export WINEDLLOVERRIDES="winemenubuilder.exe=d" + export WINESERVER="$WINE_PATH/bin/wineserver" + export WINELOADER="$WINE_PATH/bin/wine" + export WINEDLLPATH="$WINE_PATH/lib/wine" + winecfg +} -winecfg +main