“Zmień wersję PHP Devilbox” Kod odpowiedzi

Zmień wersję PHP Devilbox

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
Unsightly Unicorn

Zmień wersję PHP Devilbox Fish Funkcja

# switch_php.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
DJ Ultimate Disco Party

Odpowiedzi podobne do “Zmień wersję PHP Devilbox”

Pytania podobne do “Zmień wersję PHP Devilbox”

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu