Debugdir="/debugexamples "Releasedir="/releaseexamples "Docdir="../../../Mew_devdata/Interfacedoc/" forPathinch' ls ' doifTest-d $path ThenEcho'Test Package'$path cd $path./test.sh CD. RM-r $docDir $path$debugdir RM-R $docDir $path$releasedir CP-r $path $debugdir $docDir $path CP-r $path $releasedir $docDir $path sleep 3s fidone
The variable is defined here with a space , and then the definition of the variable failure, $debugDir directly empty, the result of a few folders I deleted, the morning code written without git add, all gone ...
So write the script later, you must first save the code when running
Debugdir="/debugexamples "Releasedir="/releaseexamples "Docdir="../../../Mew_devdata/Interfacedoc/" forPathinch' ls ' doifTest-d $path ThenEcho'Test Package'$path cd $path./test.sh CD. RM-r $docDir $path$debugdir RM-R $docDir $path$releasedir CP-r $path $debugdir $docDir $path CP-r $path $releasedir $docDir $path sleep 3s fidone
Shell definition variable Pits