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

View File

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

View File

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

View File

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