change luncher to launcher fix mistake

This commit is contained in:
victor 2020-05-04 14:26:30 +04:30
parent fcb6e621b3
commit 4e0e3e516f
5 changed files with 26 additions and 26 deletions

View File

@ -78,7 +78,7 @@ function main(){
error "resources folder Not Found"
fi
luncher
launcher
show_message "\033[1;33mwhen you run photoshop for the first time it may take a while\e[0m"
show_message "Almost Finish..."
sleep 30
@ -104,16 +104,16 @@ function warning(){
setup_log "$@"
}
function luncher(){
local luncher_path="$PWD/luncher.sh"
rmdir_if_exist "$SCR_PATH/luncher"
function launcher(){
local launcher_path="$PWD/launcher.sh"
rmdir_if_exist "$SCR_PATH/launcher"
if [ -f "$luncher_path" ];then
show_message "luncher.sh detected..."
cp "$luncher_path" "$SCR_PATH/luncher" || error "can't copy luncher"
chmod +x "$SCR_PATH/luncher/luncher.sh"
if [ -f "$launcher_path" ];then
show_message "launcher.sh detected..."
cp "$launcher_path" "$SCR_PATH/launcher" || error "can't copy launcher"
chmod +x "$SCR_PATH/launcher/launcher.sh"
else
error "luncher.sh Note Found"
error "launcher.sh Note Found"
fi
#create desktop entry
@ -139,9 +139,9 @@ function luncher(){
show_message "photoshop command exist deleted..."
sudo rm "/usr/local/bin/photoshop"
fi
sudo ln -s "$SCR_PATH/luncher/luncher.sh" "/usr/local/bin/photoshop" || error "can't create photoshop command"
sudo ln -s "$SCR_PATH/launcher/launcher.sh" "/usr/local/bin/photoshop" || error "can't create photoshop command"
unset desktop_entry desktop_entry_dest luncher_path
unset desktop_entry desktop_entry_dest launcher_path
}
function replacement(){

View File

@ -89,7 +89,7 @@ function main(){
error "resources folder Not Found"
fi
luncher
launcher
show_message "\033[1;33mwhen you run photoshop for the first time it may take a while\e[0m"
show_message "Almost Finish..."
sleep 30
@ -115,16 +115,16 @@ function warning(){
setup_log "$@"
}
function luncher(){
local luncher_path="$PWD/luncher.sh"
rmdir_if_exist "$SCR_PATH/luncher"
function launcher(){
local launcher_path="$PWD/launcher.sh"
rmdir_if_exist "$SCR_PATH/launcher"
if [ -f "$luncher_path" ];then
show_message "luncher.sh detected..."
cp "$luncher_path" "$SCR_PATH/luncher" || error "can't copy luncher"
chmod +x "$SCR_PATH/luncher/luncher.sh"
if [ -f "$launcher_path" ];then
show_message "launcher.sh detected..."
cp "$launcher_path" "$SCR_PATH/launcher" || error "can't copy launcher"
chmod +x "$SCR_PATH/launcher/launcher.sh"
else
error "luncher.sh Note Found"
error "launcher.sh Note Found"
fi
#create desktop entry
@ -150,9 +150,9 @@ function luncher(){
show_message "photoshop command exist deleted..."
sudo rm "/usr/local/bin/photoshop"
fi
sudo ln -s "$SCR_PATH/luncher/luncher.sh" "/usr/local/bin/photoshop" || error "can't create photoshop command"
sudo ln -s "$SCR_PATH/launcher/launcher.sh" "/usr/local/bin/photoshop" || error "can't create photoshop command"
unset desktop_entry desktop_entry_dest luncher_path
unset desktop_entry desktop_entry_dest launcher_path
}
function replacement(){

View File

@ -1,7 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Name=photoshop
Exec=bash gictorbit/.photoshopCCV19/luncher/luncher.sh
Exec=bash gictorbit/.photoshopCCV19/launcher/launcher.sh
Type=Application
StartupNotify=true
Comment=photoshop cc for linux

View File

@ -27,10 +27,10 @@ main(){
#Unlink command
if [ -L "$CMD_PATH" ];then
echo "remove luncher command..."
sudo unlink "$CMD_PATH" || error "couln't remove luncher command"
echo "remove launcher command..."
sudo unlink "$CMD_PATH" || error "couln't remove launcher command"
else
echo "luncher command Not Found!"
echo "launcher command Not Found!"
fi
#delete desktop entry