Horje
change php version devilbox fish Code Example
change php version devilbox fish
function switch_php
    set input_file ~/devilbox/.env
    if grep 'PHP_SERVER='$argv $input_file
        sed -i 's/^PHP_SERVER/#PHP_SERVER/' $input_file
        sed -i 's/^#PHP_SERVER='$argv'/PHP_SERVER='$argv'/' $input_file
        grep '^PHP_SERVER*' $input_file
    else
        echo "There is no container for PHP " $argv
    end
end




Shell

Related
workspace switch shortcur Gnome Code Example workspace switch shortcur Gnome Code Example
View Commit History With Changes Code Example View Commit History With Changes Code Example
docker secrets max lenght Code Example docker secrets max lenght Code Example
wget from text file Code Example wget from text file Code Example
popular git command Code Example popular git command Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8