Getting “command not found” error while comparing two strings in Bash

后端 未结 4 1810
失恋的感觉
失恋的感觉 2020-11-22 12:19

My whole Script is currently this:

#!/bin/sh   
clear;   
blanko=\"\";   
# Dummy-Variablen
variable=Testvariable;   
if [[$variable == $blanko]];
then   
           


        
4条回答
  •  没有蜡笔的小新
    2020-11-22 13:00

    If your script runs on your local with /bin/bash but not on your container with sh, then consider adding bash to your container by apk add --no-cache bash.

提交回复
热议问题