mirror of
https://github.com/tildeclub/launcher.git
synced 2026-01-24 03:10:17 +00:00
fix set cmd
This commit is contained in:
2
envs
2
envs
@@ -287,7 +287,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
set)
|
set)
|
||||||
if [ -z "$(cat < "$INFO_FILE" | sed -n /^"$2"/p)" ]; then
|
if [ -z "$(cat < "$INFO_FILE" | sed -n /^"$2"=/p)" ]; then
|
||||||
echo "${2}=${3}" >> "$INFO_FILE"
|
echo "${2}=${3}" >> "$INFO_FILE"
|
||||||
else
|
else
|
||||||
sed -i "s#${2}=.*#${2}=${3}#" "$INFO_FILE"
|
sed -i "s#${2}=.*#${2}=${3}#" "$INFO_FILE"
|
||||||
|
|||||||
Reference in New Issue
Block a user